AnsPress_Tag::page_title( string $title )
Description #
Tags page title.
Parameters #
- $titlestring (Required) Title.
Source #
File: addons/free/tag.php
public static function page_title( $title ) { if ( is_question_tags() ) { $title = ap_opt( 'tags_page_title' ); } elseif ( is_question_tag() ) { $tag_id = sanitize_title( get_query_var( 'q_tag' ) ); $tag = get_term_by( 'slug', $tag_id, 'question_tag' ); // @codingStandardsIgnoreLine. $title = $tag->name; } return $title; }
Expand full source code Collapse full source code View on GitHub: addons/free/tag.php:400
Add your comment