PHP Interface Themosis\PostType\IPostType

Afficher le fichier Open project: themosis/framework

Méthodes publiques

Méthode Description
get ( null $property = null ) : mixed Method to return defined post type properties.
make ( string $name, string $plural, string $singular ) : Themosis\PostType\IPostType Method called to build a post type instance.
set ( array $params = [] ) : mixed Method called to register the post type into WordPress.
setTitle ( string $title ) : Themosis\PostType\IPostType Allow a user to change the title placeholder text.
status ( array | string $status, array $args = [] ) : Themosis\PostType\IPostType Allow user to register custom post type statuses.

Method Details

get() public méthode

Method to return defined post type properties.
public get ( null $property = null ) : mixed
$property null
Résultat mixed

make() public méthode

Method called to build a post type instance.
public make ( string $name, string $plural, string $singular ) : Themosis\PostType\IPostType
$name string The custom post type name.
$plural string The custom post type plural display name.
$singular string The custom post type singular display name.
Résultat Themosis\PostType\IPostType

set() public méthode

Method called to register the post type into WordPress.
public set ( array $params = [] ) : mixed
$params array
Résultat mixed

setTitle() public méthode

Allow a user to change the title placeholder text.
public setTitle ( string $title ) : Themosis\PostType\IPostType
$title string
Résultat Themosis\PostType\IPostType

status() public méthode

Allow user to register custom post type statuses.
public status ( array | string $status, array $args = [] ) : Themosis\PostType\IPostType
$status array | string The status key name.
$args array The status arguments.
Résultat Themosis\PostType\IPostType