[wp-trac] [WordPress Trac] #14083: Specific action hooks for different content types on load of the edit screen

WordPress Trac wp-trac at lists.automattic.com
Fri Jun 25 10:07:35 UTC 2010


#14083: Specific action hooks for different content types on load of the edit
screen
---------------------------+------------------------------------------------
 Reporter:  simonwheatley  |       Owner:            
     Type:  enhancement    |      Status:  new       
 Priority:  normal         |   Milestone:  Unassigned
Component:  General        |     Version:            
 Severity:  normal         |    Keywords:            
---------------------------+------------------------------------------------
 In WordPress 3.0 the URLs to create a post and edit a post are now all
 post-new.php and post.php, with the post type being passed in a GET
 parameter like so: post-new.php?post_type=page…meaning load-page-new.php
 and load-page.php action hooks have both vanished!

 The attached patch:

 1. Adds in some backwards compatibility for the old load-page-new.php,
 load-page.php, and load-edit-categories.php hooks.

 2. Adds some new and useful dynamically constructed hooks based on the
 $typenow and $taxnow variables.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14083>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list