Created
May 25, 2011 06:41
-
-
Save derpixler/990463 to your computer and use it in GitHub Desktop.
Wordpress Hook into the plugin action links and filter them!
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 | |
/** | |
* | |
* Wordpress Hook into the plugin action links and filter them! | |
* @author rene reimann | |
* @authorHome http://www.rene-reimann.de | |
* | |
* @hook plugin_action_links Hooks into the plugin action links | |
* | |
* @function customActionLink() filter the Links | |
* @param $content the original links by Wordpress | |
* @return the filtered links | |
* | |
*/ | |
add_action( 'plugin_action_links' , 'customActionLink'); | |
function customActionLink($content){ | |
return array( | |
$content['myLink'] = 'Your', | |
$content['deactivate'] = 'Mother', | |
$content['edit'] = 'is a', | |
$content['blub'] = 'Plugin!' | |
); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment