WordPress.org

Make WordPress Core

Opened 14 years ago

Closed 12 years ago

#2284 closed enhancement (wontfix)

Extra Hooks in the Edit Page Table

Reported by: majelbstoat Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.0
Component: Administration Keywords: new hook manage pages table edit manage_pages_columns manage_pages_custom_column has-patch
Focuses: Cc:
PR Number:

Description

This patch adds hooks so that plugin defined columns can be added to the manage pages table, like can currently be done with the manage posts table. It adds two new hooks: 'manage_pages_columns' and 'manage_pages_custom_column', which can be called in exactly the same way (and possibly with the same callback function) as 'manage_posts_columns' and 'manage_posts_custom_column'. It also moves all table row generation code into pagerows() regardless of if a search is being conducted or not, improving consistency and ease of future alterations.

Attachments (2)

edit page hooks.diff (7.3 KB) - added by majelbstoat 14 years ago.
Patch to add new hooks to the manage pages table.
edit_page_hooks_2.diff (5.6 KB) - added by steveluscher 13 years ago.
How about something like this? I tried to change only what was necessary, and tried to preserve the colspan of the "Action" header on the edit-pages screen.

Download all attachments as: .zip

Change History (19)

@majelbstoat
14 years ago

Patch to add new hooks to the manage pages table.

#1 @majelbstoat
14 years ago

  • Keywords bg|has-patch added

#2 @davidhouse
14 years ago

  • Keywords bg|commit added

#3 @skeltoac
14 years ago

  • Milestone changed from 2.0.1 to 2.1
  • Severity changed from normal to enhancement

Not in the scope of 2.0.1.

#4 @majelbstoat
14 years ago

  • Keywords bg|has-patch bg|commit removed

The patch will have to be rewritten to take into account the changes made in changeset [3510]

#5 @majelbstoat
13 years ago

If I rewrite a patch for this, will it be included?

#6 @hgurol
13 years ago

Is this gonna be included?

thanks...

#7 @matt
13 years ago

  • Milestone changed from 2.1 to 2.2

#8 @foolswisdom
13 years ago

  • Milestone changed from 2.2 to 2.3

#9 @majelbstoat
13 years ago

I'm still being asked about this by users of Gengo on a regular basis. Is this something the devs would be interested in including? No problem with doing the patch, just if it's not going to be considered I'll move on to something else...

#10 @mark8barnes
13 years ago

Just wanted to add my support for this patch. It's needed for multi-lingual users who are beginning to use WordPress+Gengo as the CMS of choice. I don't understand why this keeps getting bumped from 2.1 to 2.2 and now 2.3 when it's an enhancement that someone is willing to write. All you gotta do is say "yes"!

#11 @Otto42
13 years ago

The patch attached does a lot more than just "add hooks". What are all these changes doing?

Make a patch, make a good case for it being included, and maybe somebody will actually include it.

-1 to this patch, until an explanation is given and/or a better patch is created for this issue.

#12 @rob1n
13 years ago

Is this still valid?

#13 @steveluscher
13 years ago

I give a big +1 to the concept of this patch, if not to the actual patch uploaded on 01/14/06.

I'm developing a plugin that makes use of the manage_pages_columns and manage_pages_custom_column hooks, and just discovered that no similar hooks exist for the Manage > Pages screen.

@steveluscher
13 years ago

How about something like this? I tried to change only what was necessary, and tried to preserve the colspan of the "Action" header on the edit-pages screen.

#14 @foolswisdom
12 years ago

  • Keywords has-patch added
  • Milestone changed from 2.3 to 2.4 (next)

#15 @scompt
12 years ago

I've just released a plugin which provides the 'manage_pages_columns' and 'manage_pages_custom_column' hooks. It hooks onto the wp action and records the extra column information which is then added into the dom using jQuery after the page is finished loading.

You can check it out at http://scompt.com/projects/manage-pages-custom-columns-in-wordpress

#16 @pishmishy
12 years ago

Can we presume that since there's been no further discussion this plugin fixes the issue? If so recommend resolving as wontfix.

#17 @pishmishy
12 years ago

  • Milestone 2.5 deleted
  • Resolution set to wontfix
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.