You appear to be a bot. Output may be restricted
Description
Find component from file nameThis extracts the plugin or theme name from the file name
Usage
$string = oiksc_get_component_name_from_file( $file );
Parameters
- $file
- ( string ) required – fully qualified file name of file implementing the shortcode
Returns
string component nameSource
File name: oik-shortcodes/admin/oik-create-codes.phpLines:
1 to 7 of 7
function oiksc_get_component_name_from_file( $file ) { oik_require( "oik-list-wordpress-files.php", "oik-batch" ); $file = strip_directory_path( ABSPATH, $file ); $parts = explode( "/", $file ); $component = $parts[2]; return( $component ); }View on GitHub