You appear to be a bot. Output may be restricted
Description
Create a link for a PHP functionOriginal notes… right at the start of the project in 2012 There is logic within wp-admin/plugin-editor.php that will try to show the documentation for a function For a PHP function it goes to: e.g. http://uk3.php.net/call_user_func For a WordPress function it goes to: e.g. http://api.wordpress.org/core/handbook/1.0/?function=oik_depends&locale=en_US&version=3.4.2&redirect=true It would be nice if we could reproduce this in a display function API Note: The way you can tell if it's a PHP function is to use get_defined_functions()
Usage
$string = oikai_link_to_php( $value );
Parameters
- $value
- ( string ) required –
Returns
string HTML link to the PHP functionSource
File name: oik-shortcodes/shortcodes/oik-api-importer.phpLines:
1 to 6 of 6
function oikai_link_to_php( $value ) { $hyphen = str_replace( "_", "-", $value ); $url = "https://www.php.net/manual/en/function.$hyphen.php" ; $link = retlink( null, $url, $value, "PHP docs for: $value" ); return( $link ); }View on GitHub