um_selected_if_in_query_params
Hook type
Filter
Description
Make selected or unselected from query attribute
Parameters
$selected
(bool) Selected or not
$filter
(string) Check by this filter in query
$val
(string) Field Value
Usage
add_filter( 'um_selected_if_in_query_params', 'function_name', 10, 3 );
Examples
<?php
add_filter( 'um_selected_if_in_query_params', 'my_selected_if_in_query_params', 10, 3 );
function my_selected_if_in_query_params( $selected, $filter, $val ) {
// your code here
return $selected;
}
?>
Change Log
Since: 2.0
Source
um_selected_if_in_query_params is located in includes/um-short-functions.php::line 975