Tags::ap_list_filters( array $filters )
Description #
Add tags sorting in list filters
Parameters #
- $filtersarray (Required) Filters.
Source #
File: addons/tags/tags.php
public function ap_list_filters( $filters ) {
global $wp;
if ( ! isset( $wp->query_vars['ap_tags'] ) && 'tag' !== ap_current_page() ) {
$filters['qtag'] = array(
'title' => __( 'Tag', 'anspress-question-answer' ),
'search' => true,
'multiple' => true,
);
}
if ( 'tags' === ap_current_page() ) {
return array(
'tags_order' => array(
'title' => __( 'Order', 'anspress-question-answer' ),
),
);
}
return $filters;
}
Expand full source code Collapse full source code View on GitHub: addons/tags/tags.php:592
Add your comment