How to get the current plugin name?

Within the plugin’s main PHP file:

$plugin_data = get_plugin_data( __FILE__ );
$plugin_name = $plugin_data['Name'];

Leave a Comment

tech