woocommerce_after_register_post_type хук-событиеWC 1.0

Использование

add_action( 'woocommerce_after_register_post_type', 'wp_kama_woocommerce_after_register_post_type_action' );

/**
 * Function for `woocommerce_after_register_post_type` action-hook.
 * 
 * @return void
 */
function wp_kama_woocommerce_after_register_post_type_action(){

	// action...
}

Где вызывается хук

WC_Post_Types::register_post_types()
woocommerce_after_register_post_type
woocommerce/includes/class-wc-post-types.php 493
do_action( 'woocommerce_after_register_post_type' );

Где используется хук в WooCommerce

woocommerce/includes/class-wc-post-types.php 30
add_action( 'woocommerce_after_register_post_type', array( __CLASS__, 'maybe_flush_rewrite_rules' ) );
woocommerce/src/Internal/Admin/Notes/OrderMilestones.php 85
add_action( 'woocommerce_after_register_post_type', array( $this, 'init' ) );