PHP Интерфейс Inpsyde\MultilingualPress\Module\CustomPostTypeSupport\PostTypeRepository

С версии: 3.0.0
Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
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.

Описание методов

get_custom_post_types() публичный метод

С версии: 3.0.0

get_supported_post_types() публичный метод

Returns the slugs of all currently supported post types.
С версии: 3.0.0
public get_supported_post_types ( ) : string[]
Результат string[] The slugs of all currently supported post types.

is_post_type_active_and_query_based() публичный метод

Checks if the given post type is active and set to be query-based.
С версии: 3.0.0
public is_post_type_active_and_query_based ( string $post_type ) : boolean
$post_type string Post type.
Результат boolean Whether or not the given post type is active and set to be query-based.

set_supported_post_types() публичный метод

Sets post type support to the given post types.
С версии: 3.0.0
public set_supported_post_types ( array $post_types ) : boolean
$post_types array Post type slugs.
Результат boolean Whether the support for all given post types was set successfully.

unsupport_all_post_types() публичный метод

Removes the support for all post types.
С версии: 3.0.0
public unsupport_all_post_types ( ) : boolean
Результат boolean Whether the support for all post types was removed successfully.