register_post_type_args WordPress Filter Hook

The register_post_type_args hook allows you to modify the arguments that are used when registering a post type. This can be useful if you need to change the labels or capabilities for a post type.

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. See the register_post_type() function for accepted arguments.

$post_type

(string)Post type key.


Top ↑

Source

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

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.