[wp-trac] [WordPress Trac] #16176: save_{$post_type}

WordPress Trac noreply at wordpress.org
Sat Aug 17 18:58:32 UTC 2013


#16176: save_{$post_type}
---------------------------------+-----------------------
 Reporter:  bmb                  |       Owner:  westi
     Type:  enhancement          |      Status:  assigned
 Priority:  low                  |   Milestone:  3.7
Component:  Post Types           |     Version:  3.0.4
 Severity:  normal               |  Resolution:
 Keywords:  has-patch 3.7-early  |
---------------------------------+-----------------------

Comment (by ocean90):

 Replying to [comment:26 nacin]:
 > Is there a rhyme or reason (as determined elsewhere in core) to have
 this filter specifically before or after save_post?

 Seems like we should move it before save_post because the specific filter
 is mostly before the general. Examples:

 update_option():
 {{{
 do_action( "update_option_{$option}", $oldvalue, $_newvalue );
 do_action( 'updated_option', $option, $oldvalue, $_newvalue );
 }}}

 add_option():
 {{{
 do_action( "add_option_{$option}", $option, $_value );
 do_action( 'added_option', $option, $_value );
 }}}

 set_transient():
 {{{
 do_action( 'set_transient_' . $transient, $value, $expiration );
 do_action( 'setted_transient', $transient, $value, $expiration );
 }}}

 admin-header.php:
 {{{
 do_action("admin_print_styles-$hook_suffix");
 do_action('admin_print_styles');
 do_action("admin_print_scripts-$hook_suffix");
 do_action('admin_print_scripts');
 do_action("admin_head-$hook_suffix");
 do_action('admin_head');
 }}}

 admin-footer.php:
 {{{
 do_action('admin_footer', '');
 do_action('admin_print_footer_scripts');
 do_action("admin_footer-" . $GLOBALS['hook_suffix']);
 }}}

--
Ticket URL: <http://core.trac.wordpress.org/ticket/16176#comment:27>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list