WordPress filter hook

inx_get_query_var_value

Fired by 2 WordPress plugins, running on 600+ sites between them.

How to use inx_get_query_var_value

It's a filter: your callback receives the value and 1 more argument, and must return the (changed) value. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_filter( 'inx_get_query_var_value', function( $template_data, $inx_skin_sort_var_name ) {
	// Change $template_data here.
	return $template_data;
}, 10, 2 );

Argument names come from immonex Kickstart's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

2 plugins that fire inx_get_query_var_value

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. immonex Kickstart icon immonex Kickstart300+ installs apply_filters( 'inx_get_query_var_value', $template_data['default_sort_option']['key'], $inx_skin_sort_var_name ) skins/default/property-list/filters-sort.php:18
  2. immonex Kickstart Team icon immonex Kickstart Team300+ installs apply_filters( 'inx_get_query_var_value', false, $var_name, $query ) includes/class-base-cpt-list-hooks.php:158

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.