Initial Commit
This commit is contained in:
25
inc/functions/documentation.php
Normal file
25
inc/functions/documentation.php
Normal file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* Documentation Functions
|
||||
*
|
||||
* @package WP_Ultimo\Functions
|
||||
* @since 2.0.11
|
||||
*/
|
||||
|
||||
// Exit if accessed directly
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
/**
|
||||
* Returns the content.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*
|
||||
* @param string $slug The slug of the link to be returned.
|
||||
* @param bool $return_default If we should return a default value.
|
||||
* @return string
|
||||
*/
|
||||
function wu_get_documentation_url($slug, $return_default = true) {
|
||||
|
||||
return \WP_Ultimo\Documentation::get_instance()->get_link($slug, $return_default);
|
||||
|
||||
} // end wu_get_documentation_url;
|
Reference in New Issue
Block a user