Created
May 7, 2019 12:37
-
-
Save DevWael/c4b381231a127c7c8d4501807a025373 to your computer and use it in GitHub Desktop.
add links to plugin description
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 | |
add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), 'prefix_add_action_links' ); | |
function prefix_add_action_links ( $links ) { | |
$mylinks = array( | |
'<a href="admin.php?page=example_page">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