wpseek.com
A WordPress-centric search engine for devs and theme authors



xmlrpc_allow_post_type_writes › WordPress Filter Hooks

Since7.1.1
Deprecatedn/a
apply_filters( 'xmlrpc_allow_post_type_writes', ! $is_internal_only, $post_type )
Parameters: (2)
  • () allowed Whether the post type accepts XML-RPC writes.
    Required: Yes
  • () post_type The post type object.
    Required: Yes
Defined at:
Codex:

Filters whether a post type accepts writes via XML-RPC.

Defaults to false for internal-only builtin post types (public=false, show_in_rest=false, _builtin=true), such as customize_changeset, whose writes are meant to flow through dedicated helpers. Return true to opt a post type back in.




Source

$allowed = apply_filters( 'xmlrpc_allow_post_type_writes', ! $is_internal_only, $post_type );