W3cubDocs

/WordPress

apply_filters( ‘register_post_type_args’, array $args, string $post_type )

Filters the arguments for registering a post type.

Parameters

$argsarray
Array of arguments for registering a post type.
See the register_post_type() function for accepted arguments.
More Arguments from register_post_type( … $args )Post type registration arguments.
$post_typestring
Post type key.

Source

$args = apply_filters( 'register_post_type_args', $args, $this->name );

Changelog

Version Description
4.4.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/register_post_type_args