Forums Forums Search & Filter Pro Elastic Search/Press

Viewing 1 post (of 1 total)
  • Trevor
    #269535

    1. You code the SFID (which is the ID number of the form), like this (assuming the form ID is 1234, but you will need to change that to match the ID of your form):

    function filter_function_name( $query_args, $sfid ) {
    	if($sfid==1234) {
    		$query_args['ep_integrate'] = true;
    	}
    	return $query_args;
    }
    add_filter( 'sf_edit_query_args', 'filter_function_name', 20, 2 );

    Our function (sf_edit_query_args) passes the sfid itself.

    2. This method works irrespective of the Display Results Method you use in the form.
    3. That is your choice, depending on how you want your site to work, but again this method works irrespective of the Ajax setting in the form.
    4. No need to rebuild the cache.
    5. Not really. There may be a monitor function on your server to show if it is being used.

Viewing 1 post (of 1 total)