W3cubDocs

/WordPress

apply_filters( 'register_post_type_args', array $args, string $post_type )

Filters the arguments for registering a post type.

Parameters

$args

(array) Array of arguments for registering a post type.

$post_type

(string) Post type key.

Source

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

View on Trac

Changelog

Version Description
4.4.0 Introduced.

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