How to get the current plugin name? April 25, 2022 by Tarik Billa Within the plugin’s main PHP file: $plugin_data = get_plugin_data( __FILE__ ); $plugin_name = $plugin_data['Name'];