You appear to be a bot. Output may be restricted
Description
Simplify the API nameSometimes we write an API as apiname() If we wrap this in the API shortcode we should be able to cater for the extraneous ()'s There could be other things we could also do… such as sanitization
Usage
$string = oikai_simplify_apiname( $api );
Parameters
- $api
- ( string ) required – the given API name
Returns
string the simplified API nameSource
File name: oik-shortcodes/shortcodes/oik-api.phpLines:
1 to 4 of 4
function oikai_simplify_apiname( $api ) { $api = str_replace( "()", "", $api ); return( $api ); }View on GitHub