Forked from derpixler/wp-action-plugin-link-hook.php
Created
May 25, 2011 09:58
Revisions
-
derpixler revised this gist
May 25, 2011 . 1 changed file with 12 additions and 11 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,17 +1,18 @@ <?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'); -
derpixler revised this gist
May 25, 2011 . 1 changed file with 13 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,18 @@ <?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){ -
derpixler created this gist
May 25, 2011 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ <?php add_action( 'plugin_action_links' , 'customActionLink'); function customActionLink($content){ return array( $content['myLink'] = 'Your', $content['deactivate'] = 'Mother', $content['edit'] = 'is a', $content['blub'] = 'Plugin!' ); } ?>