Description
“tcp_load_custom_post_types” action is executed when a custom post type is registered.
Parameters
- $post_type
- (String) Identifier the post type.
- $post_types
- (Array) an array with labels and with post type registration data.
Example
<?php function my_tcp_load_custom_post_types( $post_type, $post_type_info ) { } add_action( 'tcp_load_custom_post_types', 'my_tcp_load_custom_post_types', 10, 2 ); ?>
Related
Change Log
Since 1.2.7