Deprecated
This method has been deprecated.
Categories::page_title( string $title )
Description #
Add category page title.
Parameters #
- $titlestring (Required) AnsPress page title.
Source #
File: addons/categories/categories.php
public 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/categories/categories.php:446
Add your comment