register_{$post_type}_post_type_args

register_{$post_type}_post_type_args

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.0.1

apply_filters('register_{$post_type}_post_type_args') is found 1 times:

  • /wp-includes/class-wp-post-type.php line 461
    		 * @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}_post_type_args", $args, $this->name );
    
    		$has_edit_link = ! empty( $args['_edit_link'] );
    
    		// Args prefixed with an underscore are reserved for internal use.
    		$defaults = array(
    			'labels'                => array(),