1
0
Fork 0
mirror of https://github.com/inretio/WordPress-Plugin-Boilerplate synced 2024-12-22 11:53:53 +02:00

Replace plugin-name with plugin_slug & remove TODO

This commit is contained in:
Ulrich Pogson 2013-10-27 19:51:20 +01:00
parent fcac09e874
commit fc3de2376c

View file

@ -67,14 +67,8 @@ class Plugin_Name_Admin {
// Add the options page and menu item.
add_action( 'admin_menu', array( $this, 'add_plugin_admin_menu' ) );
/*
* Add an action link pointing to the options page.
*
* TODO:
*
* - Rename "plugin-name.php" to the name your plugin
*/
$plugin_basename = plugin_basename( plugin_dir_path( __FILE__ ) . 'plugin-name.php' );
// Add an action link pointing to the options page.
$plugin_basename = plugin_basename( plugin_dir_path( __FILE__ ) . $this->plugin_slug . '.php' );
add_filter( 'plugin_action_links_' . $plugin_basename, array( $this, 'add_action_links' ) );
/*