Deprecated
This method has been deprecated.
Categories::ap_canonical_url( string $canonical_url )
Description #
Filter canonical URL when in category page.
Parameters #
- $canonical_urlstring (Required) url.
Source #
File: addons/categories/categories.php
public function ap_canonical_url( $canonical_url ) { if ( is_question_category() ) { global $question_category; if ( ! $question_category ) { $question_category = get_queried_object(); } return get_term_link( $question_category ); // @codingStandardsIgnoreLine. } return $canonical_url; }
Expand full source code Collapse full source code View on GitHub: addons/categories/categories.php:847
Add your comment