apply_filters( "register_{$post_type}_post_type_args", array $args, string $post_type )

Filters the arguments for registering a specific post type.


Description

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

Possible hook names include:

  • register_post_post_type_args
  • register_page_post_type_args

Parameters

$args

Array of arguments for registering a post type.<br> See the register_post_type() function for accepted arguments.

$post_type

Post type key.


Source

File: wp-includes/class-wp-post-type.php

View on GitHub


Changelog

Changelog
Version Description
6.0.0 Introduced.