Last active
June 29, 2017 21:14
-
-
Save lucymtc/090b86a003f4478f2c26 to your computer and use it in GitHub Desktop.
Add a settings link to plugins overview page - WordPress
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
<?php | |
function my_add_action_links( $links ) { | |
$links[] = '<a href="'. get_admin_url(null, 'options-general.php?page=plugin_name') .'">Settings</a>'; | |
return $links; | |
} | |
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), 'my_add_action_links' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment