PHP Class Inpsyde\MultilingualPress\Module\CustomPostTypeSupport\TypeSafePostTypeRepository

Since: 3.0.0
Inheritance: implements Inpsyde\MultilingualPress\Module\CustomPostTypeSupport\PostTypeRepository
Afficher le fichier Open project: inpsyde/multilingual-press

Méthodes publiques

Méthode 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.

Private Methods

Méthode Description
get_settings ( ) : array[] Returns the post type support settings.

Method Details

get_custom_post_types() public méthode

Since: 3.0.0

get_supported_post_types() public méthode

Returns the slugs of all currently supported post types.
Since: 3.0.0
public get_supported_post_types ( ) : string[]
Résultat string[] The slugs of all currently supported post types.

is_post_type_active_and_query_based() public méthode

Checks if the given post type is active and set to be query-based.
Since: 3.0.0
public is_post_type_active_and_query_based ( string $post_type ) : boolean
$post_type string Post type.
Résultat boolean Whether or not the given post type is active and set to be query-based.

set_supported_post_types() public méthode

Sets post type support to the given post types.
Since: 3.0.0
public set_supported_post_types ( array $post_types ) : boolean
$post_types array Post type slugs.
Résultat boolean Whether the support for all given post types was set successfully.

unsupport_all_post_types() public méthode

Removes the support for all post types.
Since: 3.0.0
public unsupport_all_post_types ( ) : boolean
Résultat boolean Whether the support for all post types was removed successfully.