Deprecated
This method has been deprecated.
AnsPress_Category::page_title( string $title )
Description #
Add category page title.
Parameters #
- $titlestring (Required) AnsPress page title.
Source #
File: addons/free/category.php
public static function page_title( $title ) { if ( is_question_categories() ) { $title = ap_opt( 'categories_page_title' ); } elseif ( is_question_category() ) { $category = get_queried_object(); if ( $category ) { $title = $category->name; } else { $title = __( 'No matching category found', 'anspress-question-answer' ); } } return $title; }
Expand full source code Collapse full source code View on GitHub: addons/free/category.php:427
Add your comment