PHP Interface Themosis\PostType\IPostType

Show file Open project: themosis/framework

Public Methods

Method 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 method

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

make() public method

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.
return Themosis\PostType\IPostType

set() public method

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

setTitle() public method

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

status() public method

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.
return Themosis\PostType\IPostType