Tags::filter_active_tags_order( string $active, array $filter )
Description #
Output active tags_order in filter
Parameters #
- $activestring (Required) Active filter.
- $filterarray (Required) Filter.
Source #
File: addons/tags/tags.php
public function filter_active_tags_order( $active, $filter ) { $tags_order = ap_get_current_list_filters( 'tags_order' ); $tags_order = ! empty( $tags_order ) ? $tags_order : 'popular'; $orders = array( 'popular' => __( 'Popular', 'anspress-question-answer' ), 'new' => __( 'New', 'anspress-question-answer' ), 'name' => __( 'Name', 'anspress-question-answer' ), ); $active = isset( $orders[ $tags_order ] ) ? $orders[ $tags_order ] : ''; return ': <span class="ap-filter-active">' . $active . '</span>'; }
Expand full source code Collapse full source code View on GitHub: addons/tags/tags.php:712
Add your comment