Examples
Change Query to use different query for one Template Object
Change Queries for Template object programatical
add_filter( "wr_template_object_replace_query", array( $this, "my_template_object_replace_query" ), 10, 3 );
public function my_template_object_replace_query( $query_identifier, $options = array(), $selector = array() ) {
if ( !empty($options["identifier"] && $options["identifier"] === "my_template_object_identifier" ) ) {
return "my_query_identifier";
}
return $query_identifier;
}