PHP 클래스 Carbon_Fields\Container\Term_Meta_Container

상속: extends Container
파일 보기 프로젝트 열기: htmlburger/carbon-fields

공개 프로퍼티들

프로퍼티 타입 설명
$settings

보호된 프로퍼티들

프로퍼티 타입 설명
$term_id

공개 메소드들

메소드 설명
__construct ( string $title ) Create a new term meta fields container
attach ( ) Add term meta for each of the container taxonomies
detach ( ) Revert the result of attach()
init ( ) Bind attach() and save() to the appropriate WordPress actions.
is_valid_attach ( ) : boolean Perform checks whether the container should be attached during the current request
is_valid_save ( integer $term_id = null ) : boolean Perform checks whether the current save() request is valid.
render ( $term = null ) Output the container markup
save ( integer $term_id ) Perform save operation after successful is_valid_save() check.
set_term_id ( integer $term_id ) Set the term ID the container will operate with.
show_on_level ( integer $term_level ) : object Show the container only on particular term level.
show_on_taxonomy ( string | array $taxonomies ) : object Show the container only on terms from the specified taxonomies.

메소드 상세

__construct() 공개 메소드

Create a new term meta fields container
public __construct ( string $title )
$title string Unique title of the container

attach() 공개 메소드

Add term meta for each of the container taxonomies
public attach ( )

detach() 공개 메소드

Revert the result of attach()
public detach ( )

init() 공개 메소드

Bind attach() and save() to the appropriate WordPress actions.
public init ( )

is_valid_attach() 공개 메소드

Perform checks whether the container should be attached during the current request
public is_valid_attach ( ) : boolean
리턴 boolean True if the container is allowed to be attached

is_valid_save() 공개 메소드

Perform checks whether the current save() request is valid.
public is_valid_save ( integer $term_id = null ) : boolean
$term_id integer ID of the term against which save() is ran
리턴 boolean

render() 공개 메소드

Output the container markup
public render ( $term = null )

save() 공개 메소드

The call is propagated to all fields in the container.
public save ( integer $term_id )
$term_id integer ID of the term against which save() is ran

set_term_id() 공개 메소드

Set the term ID the container will operate with.
public set_term_id ( integer $term_id )
$term_id integer

show_on_level() 공개 메소드

Show the container only on particular term level.
public show_on_level ( integer $term_level ) : object
$term_level integer
리턴 object $this

show_on_taxonomy() 공개 메소드

Show the container only on terms from the specified taxonomies.
public show_on_taxonomy ( string | array $taxonomies ) : object
$taxonomies string | array
리턴 object $this

프로퍼티 상세

$settings 공개적으로 프로퍼티

public $settings

$term_id 보호되어 있는 프로퍼티

protected $term_id