-
-
Save mikejolley/c9e66bc098fb3cabda2d to your computer and use it in GitHub Desktop.
Add some plugin action links
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
add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), 'your_plugin_action_links' ); | |
function your_plugin_action_links( $links ) { | |
return array_merge( array( | |
'<a href="' . admin_url( 'admin.php?page=your-plugin' ) . '">' . __( 'Settings'' ) . '</a>', | |
'<a href="#someotherlink">' . __( 'Link' ) . '</a>' | |
), $links ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment