WordPress.org

Make WordPress Core

Changeset 18833


Ignore:
Timestamp:
09/30/2011 09:53:35 AM (7 years ago)
Author:
westi
Message:

Fire an action when a post type or taxonomy is registered so plugins can react. Fixes #18802 props simonwheatley.

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/post.php

    r18823 r18833  
    10381038    }
    10391039
     1040    do_action( 'registered_post_type', $post_type, $args );
     1041   
    10401042    return $args;
    10411043}
  • trunk/wp-includes/taxonomy.php

    r18809 r18833  
    364364    // register callback handling for metabox
    365365    add_filter('wp_ajax_add-' . $taxonomy, '_wp_ajax_add_hierarchical_term');
     366
     367    do_action( 'registered_taxonomy', $taxonomy, $object_type, $args );
    366368}
    367369
Note: See TracChangeset for help on using the changeset viewer.