PHP 클래스 WPAS_CF_Taxonomy

상속: extends WPAS_Custom_Field
파일 보기 프로젝트 열기: awesome-support/awesome-support

보호된 프로퍼티들

프로퍼티 타입 설명
$ordered_terms The taxonomy terms ordered hierarchically.
$terms The taxonomy terms.

공개 메소드들

메소드 설명
__construct ( $field_id, $field )
add_select2_class ( array $classes, array $field ) : array Add the select2 class to the input
display ( ) : string Return the field markup for the front-end.
display_admin ( ) Return the field markup for the admin.
display_no_edit ( ) Return the field markup for the admin.
update ( integer $value, integer $post_id ) : integer Save function.

메소드 상세

__construct() 공개 메소드

public __construct ( $field_id, $field )

add_select2_class() 공개 메소드

Add the select2 class to the input
부터: 3.3
public add_select2_class ( array $classes, array $field ) : array
$classes array Input classes
$field array Array of params of the field being processed
리턴 array

display() 공개 메소드

Return the field markup for the front-end.
public display ( ) : string
리턴 string Field markup

display_admin() 공개 메소드

This method is only used if the current user has the capability to edit the field.
public display_admin ( )

display_no_edit() 공개 메소드

This method is only used if the current user doesn't have the capability to edit the field.
public display_no_edit ( )

update() 공개 메소드

Taxonomies are saved differently as they are not stored as post metas but actual taxonomy terms.
부터: 3.2.0
public update ( integer $value, integer $post_id ) : integer
$value integer New value
$post_id integer ID of the post being saved
리턴 integer Result of the update

프로퍼티 상세

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

The taxonomy terms ordered hierarchically.
부터: 3.2.0
protected $ordered_terms

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

The taxonomy terms.
부터: 3.2.0
protected $terms