Skip to content

wpt_allowed_post_types

github-actions[bot] edited this page Jun 19, 2026 · 2 revisions

Return array of post types that can be sent as status updates.

Auto-generated Example

add_filter(
   'wpt_allowed_post_types',
    function(
        array $types,
        array $post_type_settings
    ) {
        // Your code here.
        return $types;
    },
    10,
    2
);

Parameters

  • array $types Array of post type names enabled for status updates either when editing or publishing.
  • array $post_type_settings Multidimensional array of post types and post type settings.

Returns

array

Files

apply_filters( 'wpt_allowed_post_types', $allowed_types, $post_type_settings )

← All Hooks

Clone this wiki locally