Method | Description | |
---|---|---|
get_custom_post_types ( ) | ||
get_supported_post_types ( ) : string[] | Returns the slugs of all currently supported post types. | |
is_post_type_active_and_query_based ( string $post_type ) : boolean | Checks if the given post type is active and set to be query-based. | |
set_supported_post_types ( array $post_types ) : boolean | Sets post type support to the given post types. | |
unsupport_all_post_types ( ) : boolean | Removes the support for all post types. |
Method | Description | |
---|---|---|
get_settings ( ) : array[] | Returns the post type support settings. |
public get_supported_post_types ( ) : string[] | ||
return | string[] | The slugs of all currently supported post types. |
public is_post_type_active_and_query_based ( string $post_type ) : boolean | ||
$post_type | string | Post type. |
return | boolean | Whether or not the given post type is active and set to be query-based. |
public set_supported_post_types ( array $post_types ) : boolean | ||
$post_types | array | Post type slugs. |
return | boolean | Whether the support for all given post types was set successfully. |
public unsupport_all_post_types ( ) : boolean | ||
return | boolean | Whether the support for all post types was removed successfully. |