beyondwords_settings_post_types

Filters the post types supported by BeyondWords.

speechkit_post_types is deprecated and redirects to here. Please update to the new filter name; the functionality is exactly the same. The old filter was removed in version 4.0.0.

This defaults to all registered post types with custom-fields in their supports array. If any of the supplied post types do not support custom fields

Parameters

$post_types string[]

An array of post type names.


Example

function my_beyondwords_settings_post_types( $post_types ) {
    // $post_types contains the currently-supported post types

    // Only support 'posts'
    return [ 'posts' ];
}
add_filter( 'beyondwords_settings_post_types', 'my_beyondwords_settings_post_types' );

Changelog

VersionDescription

4.3.0

Deprecate beyondwords_post_types for beyondwords_settings_post_types.

3.7.0

Deprecate speechkit_post_types for beyondwords_post_types.

3.2.0

Introduced.

Last updated