Description
Get plugin data if available
Usage
$string = bw_get_plugin_data( $plugin_slug );Parameters
- $plugin_slug
- ( string ) required – plugin slug e.g. oik-fields
Returns
string plugin data for the plugin if the main plugin file existsSource
File name: oik-bob-bing-wide/shortcodes/oik-plug.phpLines:
1 to 16 of 16
function bw_get_plugin_data( $plugin_slug ) { //$plugins = get_plugins( '/' . $plugin_slug ) ; //print_r( $plugins ); require_once( ABSPATH . "wp-admin/includes/plugin.php" ); $file = oik_path( "$plugin_slug.php" , $plugin_slug ); if ( file_exists( $file ) ) { $plugin_data = get_plugin_data( $file ); } else { $plugin_data = null; } bw_trace2( $plugin_data, "plugin_data" ); return( $plugin_data ); }View on GitHub
Called by
1 to 2 of 2
Invoked by
Call hooks
API Letters:
