PHP Класс CPTP_Util, custom-post-type-permalinks

С версии: 0.9.4
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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