Tuesday, 15 September 2015

Wordpress admin - add item next to "Activate Edit Delete" list -


In the plugins section of the admin screen, each plugin typically has some things you can do, usually " Activate, Edit Delete ". How do I add an item to this list?

Just add this code to your plugin file

  // plugin Add settings link to page your_plugin_settings_link ($ links) {$ settings_link = '& lt; A href = "options-general.php? Page = your_plugin.php" & gt; Settings & lt; / A & gt; '; Array_unshift ($ link, $ settings_link); Return $ link; } $ Plugin = plugin_basename (__ FILE__); Add_filter ("plugin_action_links_ $ plugin", 'your_plugin_settings_link');  Edit:  OK, I think that you are administering the site, and you want your users to report something wrong with any plugin. Here are some options: 

  • Use Jquery to add links.
  • Use the above work and add a loop around add_filter, and then loop through `$ all_plugins = get_plugins ();

No comments:

Post a Comment