PHP 인터페이스 Themosis\PostType\IPostType

파일 보기 프로젝트 열기: themosis/framework

공개 메소드들

메소드 설명
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.

메소드 상세

get() 공개 메소드

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

make() 공개 메소드

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

set() 공개 메소드

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

setTitle() 공개 메소드

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

status() 공개 메소드

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