register_post_type_args

register_post_type_args

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('register_post_type_args') is found 1 times:

  • /wp-includes/class-wp-post-type.php line 491
    		 * @param array  $args      Array of arguments for registering a post type.
    		 *                          See the register_post_type() function for accepted arguments.
    		 * @param string $post_type Post type key.
    		 */
    		$args = apply_filters( 'register_post_type_args', $args, $this->name );
    
    		$post_type = $this->name;
    
    		/**
    		 * Filters the arguments for registering a specific post type.
    		 *
    

See this hook used in plugins: