Created
June 4, 2017 19:55
-
-
Save aliciaiceland/5fd67bf70b13b16e17a606ff44a04cdd to your computer and use it in GitHub Desktop.
Add Settings Link To Plugin Listing Page
This file contains hidden or 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
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), 'myplugin_add_action_links' ); | |
function myplugin_add_action_links ( $links ) { | |
$mylinks = array( | |
'<a href="' . admin_url( 'options-general.php?page=myplugin_settings' ) . '">Settings</a>', | |
); | |
return array_merge( $links, $mylinks ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment