Skip to content

Instantly share code, notes, and snippets.

View unfulvio's full-sized avatar

Fulvio Notarstefano unfulvio

  • Fukuoka, Japan
  • 23:24 (UTC +09:00)
View GitHub Profile
@unfulvio
unfulvio / functions.php
Created February 13, 2017 13:02 — forked from mgibbs189/functions.php
FacetWP - WooCommerce Memberships fix
<?php
add_filter( 'facetwp_is_main_query', function( $is_main_query, $query ) {
if ( 'wc_user_membership' == $query->get( 'post_type' ) ) {
$is_main_query = false;
}
return $is_main_query;
}, 10, 2 );