Skip to content

Instantly share code, notes, and snippets.

@mgibbs189 mgibbs189/functions.php
Last active Mar 11, 2016

Embed
What would you like to do?
<?php
function force_pageload_template($output, $params ) {
if ( true === (bool) $params['first_load'] ) {
$output['template'] = FWP()->facet->get_template_html( $params['template'] );
}
return $output;
}
add_filter( 'facetwp_render_output', 'force_pageload_template', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.