registered_post_type_(post_type) хук-событиеWP 6.0.0

Fires after a specific post type is registered.

The dynamic portion of the filter name, $post_type, refers to the post type key.

Possible hook names include:


add_action( 'registered_post_type_(post_type)', 'wp_kama_registered_post_type_action', 10, 2 );

 * Function for `registered_post_type_(post_type)` action-hook.
 * @param string       $post_type        Post type.
 * @param WP_Post_Type $post_type_object Arguments used to register the post type.
 * @return void
function wp_kama_registered_post_type_action( $post_type, $post_type_object ){

	// action...
Post type.
Arguments used to register the post type.

Список изменений

С версии 6.0.0 Введена.

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

wp-includes/post.php 1730
do_action( "registered_post_type_{$post_type}", $post_type, $post_type_object );

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

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