Toggle navigation
Hot Examples
KO
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
검색
홈
Themosis
Taxonomy
TaxMeta
PHP 클래스 Themosis\Taxonomy\TaxMeta
Allow the user to retrieve a custom field of a taxonomy.
파일 보기
프로젝트 열기: themosis/framework
공개 메소드들
메소드
설명
all
(
string
$taxonomySlug
,
integer
$term_id
) :
array
|
boolean
Retrieve all custom fields of a term.
get
(
string
$taxonomySlug
,
integer
$term_id
,
string
$key
) :
array
|
string
Retrieve one custom field of a term.
메소드 상세
all()
공개
정적인
메소드
Retrieve all custom fields of a term.
public
static
all
(
string
$taxonomySlug
,
integer
$term_id
) :
array
|
boolean
$taxonomySlug
string
The registered taxonomy slug.
$term_id
integer
The term ID.
리턴
array
|
boolean
The custom field values. False if empty.
get()
공개
정적인
메소드
Retrieve one custom field of a term.
public
static
get
(
string
$taxonomySlug
,
integer
$term_id
,
string
$key
) :
array
|
string
$taxonomySlug
string
The registered taxonomy slug.
$term_id
integer
The term ID.
$key
string
The key name of the custom field.
리턴
array
|
string
The saved value in the option table.