Make WordPress Core

Opened 18 years ago

Closed 18 years ago

#7856 closed defect (bug) (fixed)

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: Focuses:

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 18 years ago.
adds plugin_action_links_{$plugin} filter to plugins.php
after_row_patch.diff (838 bytes ) - added by strider72 18 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 18 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
18 years ago

adds plugin_action_links_{$plugin} filter to plugins.php

#1 @westi
18 years ago

  • Owner changed from anonymous to westi
  • Status newassigned

Nice!

@strider72
18 years ago

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

#2 @strider72
18 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
18 years ago

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

#3 @westi
18 years ago

  • Resolutionfixed
  • Status assignedclosed

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

Note: See TracTickets for help on using tickets.