WordPress.org

Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#7856 closed defect (bug) (fixed)

Add plugin_action_links_{$plugin} hook

Reported by: strider72 Owned by: westi
Milestone: 2.7 Priority: normal
Severity: normal Version: 2.7
Component: General Keywords: plugins, filters, has-patch
Focuses: 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 (3)

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

Download all attachments as: .zip

Change History (6)

@strider72
12 years ago

adds plugin_action_links_{$plugin} filter to plugins.php

#1 @westi
12 years ago

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

Nice!

@strider72
12 years ago

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

#2 @strider72
12 years ago

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.

@strider72
12 years ago

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

#3 @westi
12 years ago

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

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

Note: See TracTickets for help on using tickets.