um_modify_sortby_parameter

Hook type

Filter

Description

Change query sort by attributes for search at Members Directory

Parameters

$query_args

(array) Query Arguments

$sortby

(string) Sort by

Usage

<?php add_filter( 'um_modify_sortby_parameter', 'function_name', 10, 2 ); ?>

Examples

<?php
add_filter( 'um_modify_sortby_parameter', 'my_modify_sortby_parameter', 10, 2 );
function my_modify_sortby_parameter( $query_args, $sortby ) {
    // your code here
return $query_args;
}
?>

Change Log

Since: 2.0

Source

um_modify_sortby_parameter is located in includes/core/um-filters-members.php::line 358