PHP 클래스 Taxonomy_Core

저자: Justin Sternberg Text Domain: taxonomy-core Domain Path: /languages
파일 보기 프로젝트 열기: webdevstudios/taxonomy_core 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$arg_overrides array Optional argument overrides passed in from the constructor.
$l10n_done boolean Whether text-domain has been registered
$object_types array Objects to register this taxonomy against
$plural string Plural Taxonomy label
$singular string Singlur Taxonomy label
$taxonomies array An array of each Taxonomy_Core object registered with this class
$taxonomy string Registered Taxonomy name/slug
$taxonomy_args array All Taxonomy registration arguments

공개 메소드들

메소드 설명
__construct ( mixed $taxonomy, array $arg_overrides = [], array $object_types = ['post'] ) Constructor. Builds our Taxonomy.
__toString ( ) : string Magic method that echos the Taxonomy registered name when treated like a string
get_args ( ) : array Gets the passed in arguments combined with our defaults.
l10n ( ) Load this library's text domain
register_taxonomy ( ) Actually registers our Taxonomy with the merged arguments
taxonomies ( string $taxonomy = '' ) : mixed Provides access to all Taxonomy_Core taxonomy objects registered via this class.
taxonomy ( string $key = 'taxonomy' ) : mixed Provides access to protected class properties.

메소드 상세

__construct() 공개 메소드

Constructor. Builds our Taxonomy.
부터: 0.1.0
public __construct ( mixed $taxonomy, array $arg_overrides = [], array $object_types = ['post'] )
$taxonomy mixed Singular Taxonomy name, or array with Singular, Plural, and Registered
$arg_overrides array Taxonomy registration override arguments
$object_types array Post types to register this taxonomy for

__toString() 공개 메소드

Magic method that echos the Taxonomy registered name when treated like a string
부터: 0.1.0
public __toString ( ) : string
리턴 string Taxonomy registered name

get_args() 공개 메소드

Gets the passed in arguments combined with our defaults.
부터: 0.1.0
public get_args ( ) : array
리턴 array Taxonomy arguments array

l10n() 공개 메소드

Load this library's text domain
부터: 0.2.0
public l10n ( )

register_taxonomy() 공개 메소드

Actually registers our Taxonomy with the merged arguments
부터: 0.1.0
public register_taxonomy ( )

taxonomies() 공개 정적인 메소드

Provides access to all Taxonomy_Core taxonomy objects registered via this class.
부터: 0.1.0
public static taxonomies ( string $taxonomy = '' ) : mixed
$taxonomy string Specific Taxonomy_Core object to return, or 'true' to specify only names.
리턴 mixed Specific Taxonomy_Core object or array of all

taxonomy() 공개 메소드

Provides access to protected class properties.
부터: 0.1.0
public taxonomy ( string $key = 'taxonomy' ) : mixed
$key string Specific taxonomy parameter to return
리턴 mixed Specific taxonomy parameter or array of singular, plural and registered name

프로퍼티 상세

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

Optional argument overrides passed in from the constructor.
protected array $arg_overrides
리턴 array

$l10n_done 보호되어 있는 정적으로 프로퍼티

Whether text-domain has been registered
protected static bool $l10n_done
리턴 boolean

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

Objects to register this taxonomy against
protected array $object_types
리턴 array

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

Plural Taxonomy label
protected string $plural
리턴 string

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

Singlur Taxonomy label
protected string $singular
리턴 string

$taxonomies 보호되어 있는 정적으로 프로퍼티

An array of each Taxonomy_Core object registered with this class
protected static array $taxonomies
리턴 array

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

Registered Taxonomy name/slug
protected string $taxonomy
리턴 string

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

All Taxonomy registration arguments
protected array $taxonomy_args
리턴 array