AnsPress_Category::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/free/category.php
public static 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/free/category.php:756
Add your comment