WP_Rewrite::get_tag_permastruct()publicWP 2.3.0

Retrieves the permalink structure for tags.

If the tag_base property has no value, then the tag structure will have the front property value, followed by 'tag', and finally '%tag%'. If it does, then the root property will be used, along with the tag_base property value.

Метод класса: WP_Rewrite{}

Хуков нет.

Возвращает

Строку|false. Tag permalink structure on success, false on failure.

Использование

global $wp_rewrite;
$wp_rewrite->get_tag_permastruct();

Список изменений

С версии 2.3.0 Введена.

Код WP_Rewrite::get_tag_permastruct() WP 6.4.3

public function get_tag_permastruct() {
	return $this->get_extra_permastruct( 'post_tag' );
}