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

Opened 3 months ago

Last modified 3 months ago

Add plugin_action_links_{$plugin} hook

Reported by: strider72 Assigned to: 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 (0.6 kB) - added by strider72 on 10/09/08 05:51:54.
adds plugin_action_links_{$plugin} filter to plugins.php
after_row_patch.diff (0.8 kB) - added by strider72 on 10/09/08 12:52:20.
New patch = old patch plus after_plugin_row_{$plugin} filter. Two birds with one stone?
akismet_sample_patch.diff (1.0 kB) - added by strider72 on 10/10/08 05:33:42.
As a demonstration, this patch modifies Akismet to use this new filter. Now has "Settings" link in plugin admin row.

Change History

10/09/08 05:51:54 changed by strider72

  • attachment patch.diff added.

adds plugin_action_links_{$plugin} filter to plugins.php

10/09/08 06:43:31 changed by westi

  • owner changed from anonymous to westi.
  • status changed from new to assigned.

Nice!

10/09/08 12:52:20 changed by strider72

  • attachment after_row_patch.diff added.

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

10/09/08 12:53:54 changed by strider72

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.

10/10/08 05:33:42 changed by strider72

  • attachment akismet_sample_patch.diff added.

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

10/11/08 21:33:15 changed by westi

  • 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.