Ticket #7856 (closed defect (bug): fixed)

Opened 3 years ago

Last modified 3 years ago

Add plugin_action_links_{$plugin} hook

Reported by: strider72 Owned by: westi
Priority: normal Milestone: 2.7
Component: General Version: 2.7
Severity: normal Keywords: plugins, filters, has-patch
Cc:

Description

Per discussion on wp-hackers, this is a patch to add a plugin_action_links_{$plugin} filter.

It runs just after the plugin_action_links filter.

Note -- the initial patch on this uses the plugin_basename for $plugin, rather than the string returned from add_options_page.

Attachments

patch.diff Download (613 bytes) - added by strider72 3 years ago.
adds plugin_action_links_{$plugin} filter to plugins.php
after_row_patch.diff Download (838 bytes) - added by strider72 3 years ago.
New patch = old patch plus after_plugin_row_{$plugin} filter. Two birds with one stone?
akismet_sample_patch.diff Download (1012 bytes) - added by strider72 3 years ago.
As a demonstration, this patch modifies Akismet to use this new filter. Now has "Settings" link in plugin admin row.

Change History

adds plugin_action_links_{$plugin} filter to plugins.php

  • Owner changed from anonymous to westi
  • Status changed from new to assigned

Nice!

New patch = old patch plus after_plugin_row_{$plugin} filter. Two birds with one stone?

New patch has one other difference -- I added $plugin_data back into the plugin_action_links_{$plugin} filter.

I had removed it in the first patch, but it should probably be there -- no real reason to remove it.

As a demonstration, this patch modifies Akismet to use this new filter. Now has "Settings" link in plugin admin row.

  • Status changed from assigned to closed
  • Resolution set to fixed

(In [9124]) Add some plugin specific hooks to the plugin management screen. Fixes #7856 props strider72.

Note: See TracTickets for help on using tickets.