You appear to be a bot. Output may be restricted
Description
Get the plugin slug
Usage
$string = oiksc_get_plugin_slug( $plugin );
Parameters
- $plugin
- ( mixed ) required –
Returns
string the plugin slugTO DO
decide if we need to trim anything past the first '/', if presentSource
File name: oik-shortcodes/admin/oik-apis.phpLines:
1 to 11 of 11
function oiksc_get_plugin_slug( $plugin ) { if ( is_numeric( $plugin ) ) { $slug = get_post_meta( $plugin, "_oikp_slug", true ); if ( !$slug ) { $slug = get_post_meta( $plugin, "_oikth_slug", true ); } } else { $slug = $plugin; } return( $slug ); }View on GitHub