Ticket #18802: new_hook.diff

File new_hook.diff, 403 bytes (added by simonwheatley, 20 months ago)

New hook registered_post_type for register_post_type

  • wp-includes/post.php

    diff --git a/wp-includes/post.php b/wp-includes/post.php
    index 93bdb0a..294b7e7 100644
    a b function register_post_type($post_type, $args = array()) { 
    10371037               register_taxonomy_for_object_type( $taxonomy, $post_type ); 
    10381038       } 
    10391039 
     1040       do_action( 'registered_post_type', $post_type, $args ); 
     1041 
    10401042       return $args; 
    10411043} 
    10421044