wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



xmlrpc_allow_post_type_writes › WordPress Filter Hooks

Seit7.1.1
Veraltetn/v
apply_filters( 'xmlrpc_allow_post_type_writes', ! $is_internal_only, $post_type )
Parameter: (2)
  • () allowed Whether the post type accepts XML-RPC writes.
    Erforderlich: Ja
  • () post_type The post type object.
    Erforderlich: Ja
Definiert in:
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.




Quellcode

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