From: Steve Sutton Date: Wed, 8 Aug 2018 19:49:22 +0000 (-0400) Subject: Update for using only published groups. X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=98c9bb2c8d2887892ffad35abf30ed705ef46165;p=WP-Plugins%2Fglm-member-db-fields.git Update for using only published groups. Only publish groups for the filter. --- diff --git a/setup/frontHooks.php b/setup/frontHooks.php index c6768b4..65f4327 100644 --- a/setup/frontHooks.php +++ b/setup/frontHooks.php @@ -167,7 +167,8 @@ add_filter( $wpdb->prepare( "SELECT * FROM $groupTable - WHERE uid = %s", + WHERE uid = %s + AND publish", $uid ), ARRAY_A