Created
October 22, 2018 10:23
-
-
Save rafsuntaskin/a12363ece71a7f85ad69cdd3e34ebe7e to your computer and use it in GitHub Desktop.
Add WP plugin action link
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__), 'plugin_action_links' ); | |
function plugin_action_links( $links ) { | |
$links[] = '<a href="' . admin_url( 'admin.php?page=my-plugin-settings' ) . '">' . __( 'Settings', 'text-domain' ) . '</a>'; | |
return $links; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment