WP_Rewrite::get_tag_permastruct
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.
Method of the class: WP_Rewrite{}
No Hooks.
Returns
String|false. Tag permalink structure on success, false on failure.
Usage
global $wp_rewrite; $wp_rewrite->get_tag_permastruct();
Changelog
| Since 2.3.0 | Introduced. |
WP_Rewrite::get_tag_permastruct() WP Rewrite::get tag permastruct code WP 7.0
public function get_tag_permastruct() {
return $this->get_extra_permastruct( 'post_tag' );
}