Created
May 28, 2015 08:24
-
-
Save thierrypigot/7d1e53848c3009e15b15 to your computer and use it in GitHub Desktop.
WordPress : Ajouter un lien d’action dans liste plugins
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
| <?php | |
| function tp_googlemaps_action_links( $links, $file ) | |
| { | |
| if (strstr($file, 'tp-googlemaps/tp-googlemaps.php')) | |
| { | |
| $settings_link = '<a href="admin.php?page=tp_googlemaps-menu">'. __('Settings').'</a>'; | |
| array_unshift( $links, $settings_link ); | |
| } | |
| return $links; | |
| } | |
| add_filter('plugin_action_links', 'tp_googlemaps_action_links', 10, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment