Created
November 29, 2017 12:28
-
-
Save isuke01/92d534f68c1ffb4065c26aca607505e9 to your computer and use it in GitHub Desktop.
Wordpress - Add settings link in plugin list to your plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function plugin_add_settings_link( $links ) { | |
$settings_link = '<a href="options-general.php?page=plugin_name">' . __( 'Settings' ) . '</a>'; | |
array_push( $links, $settings_link ); | |
return $links; | |
} | |
$plugin = plugin_basename( __FILE__ ); | |
add_filter( "plugin_action_links_$plugin", 'plugin_add_settings_link' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment