PHP 클래스 CPTP_Util, custom-post-type-permalinks

부터: 0.9.4
파일 보기 프로젝트 열기: torounit/custom-post-type-permalinks 1 사용 예제들

공개 메소드들

메소드 설명
get_date_front ( string $post_type ) : string Get permalink structure front for date archive.
get_no_taxonomy_structure ( ) : boolean Get Option no_taxonomy_structure.
get_permalink_structure ( string | object $post_type ) : string Get permalink structure.
get_post_types ( ) : array
get_taxonomies ( boolean $objects = false ) : array
get_taxonomy_parents ( integer | WP_Term | object $term, string $taxonomy = 'category', boolean $link = false, string $separator = '/', boolean $nicename = false, array $visited = [] ) : string Get Custom Taxonomies parents.
get_taxonomy_parents_slug ( integer | WP_Term | object $term, string $taxonomy = 'category', string $separator = '/', boolean $nicename = false, array $visited = [] ) : string Get Custom Taxonomies parents slug.

비공개 메소드들

메소드 설명
__construct ( )
is_post_type_support_rewrite ( string $post_type ) : boolean

메소드 상세

get_date_front() 공개 정적인 메소드

Get permalink structure front for date archive.
부터: 1.0.0
public static get_date_front ( string $post_type ) : string
$post_type string post type name.
리턴 string

get_no_taxonomy_structure() 공개 정적인 메소드

Get Option no_taxonomy_structure.
부터: 2.2.0
public static get_no_taxonomy_structure ( ) : boolean
리턴 boolean

get_post_types() 공개 정적인 메소드

public static get_post_types ( ) : array
리턴 array

get_taxonomies() 공개 정적인 메소드

public static get_taxonomies ( boolean $objects = false ) : array
$objects boolean
리턴 array

get_taxonomy_parents() 공개 정적인 메소드

Get Custom Taxonomies parents.
사용 중단:
public static get_taxonomy_parents ( integer | WP_Term | object $term, string $taxonomy = 'category', boolean $link = false, string $separator = '/', boolean $nicename = false, array $visited = [] ) : string
$term integer | WP_Term | object
$taxonomy string
$link boolean
$separator string
$nicename boolean
$visited array
리턴 string

get_taxonomy_parents_slug() 공개 정적인 메소드

Get Custom Taxonomies parents slug.
public static get_taxonomy_parents_slug ( integer | WP_Term | object $term, string $taxonomy = 'category', string $separator = '/', boolean $nicename = false, array $visited = [] ) : string
$term integer | WP_Term | object
$taxonomy string
$separator string
$nicename boolean
$visited array
리턴 string