xmlrpc_prepare_post_type WordPress Filter Hook

This hook allows you to modify the post type object before it is registered with WordPress. This is useful for adding custom fields ortaxonomies to your post type.

apply_filters( 'xmlrpc_prepare_post_type', array $_post_type, WP_Post_Type $post_type ) #

Filters XML-RPC-prepared date for the given post type.


Parameters

$_post_type

(array)An array of post type data.

$post_type

(WP_Post_Type)Post type object.


Top ↑

Source

File: wp-includes/class-wp-xmlrpc-server.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.6.0Converted the $post_type parameter to accept a WP_Post_Type object.
3.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.

Show More