[wp-trac] [WordPress Trac] #31073: Add new filter on function register_post_type

WordPress Trac noreply at wordpress.org
Tue Jan 20 12:35:33 UTC 2015


#31073: Add new filter on function register_post_type
-----------------------------+------------------------------
 Reporter:  teolaz           |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  General          |     Version:  4.1
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+------------------------------

Comment (by teolaz):

 FIY

 the filter needs to return the $args modified;

 so the correct line is

 {{{
 $args = apply_filters( "registering_post_type", $post_type, $args);
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31073#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list