Categories::ap_ask_btn_link( string $link )
Description #
Filter ask button link to append current category link.
Parameters #
- $linkstring (Required) Ask button link.
Source #
File: addons/categories/categories.php
public function ap_ask_btn_link( $link ) { if ( is_question_category() ) { $question_category = get_queried_object(); return $link . '?category=' . $question_category->term_id; } return $link; }
Expand full source code Collapse full source code View on GitHub: addons/categories/categories.php:831
Add your comment