mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-05-03 12:12:25 +08:00
https://connekthq.com/plugins/ajax-load-more/docs/add-ons/filters/hooks/#taxonomy-ordering
10 lines
302 B
Text
10 lines
302 B
Text
// [ajax_load_more_filters id="movies"]
|
|
function my_filters_actor_order( $args ){
|
|
// Adjust get_terms query $args.
|
|
$args['post_type'] = 'movie';
|
|
$args['order'] = 'ASC';
|
|
$args['orderby'] = 'slug';
|
|
|
|
return $args;
|
|
}
|
|
add_filter( 'alm_filters_movies_actor_args', 'my_filters_actor_order' );
|