PHP 클래스 Papi_Attachment_Type, papi

상속: extends Papi_Page_Type
파일 보기 프로젝트 열기: wp-papi/papi

공개 프로퍼티들

프로퍼티 타입 설명
$post_type string The post type to register the type with.
$type string The type name.

공개 메소드들

메소드 설명
edit_attachment ( array $form_fields, WP_Post $post ) : array Add attachment fields.
get_post_type ( ) : string Get post type.
save_attachment ( array $post ) : array Save attachment post data.
singleton ( ) : boolean Check if the entry type is a singleton.

보호된 메소드들

메소드 설명
setup_filters ( ) Setup filters.

메소드 상세

edit_attachment() 공개 메소드

Add attachment fields.
public edit_attachment ( array $form_fields, WP_Post $post ) : array
$form_fields array
$post WP_Post
리턴 array

get_post_type() 공개 메소드

Get post type.
public get_post_type ( ) : string
리턴 string

save_attachment() 공개 메소드

Save attachment post data.
public save_attachment ( array $post ) : array
$post array
리턴 array

setup_filters() 보호된 메소드

Setup filters.
protected setup_filters ( )

singleton() 공개 메소드

Check if the entry type is a singleton.
public singleton ( ) : boolean
리턴 boolean

프로퍼티 상세

$post_type 공개적으로 프로퍼티

The post type to register the type with.
public string $post_type
리턴 string

$type 공개적으로 프로퍼티

The type name.
public string $type
리턴 string