Commented out flush_rules() as it was clearing rewrite rules - need to investigate
authorChuck Scott <cscott@gaslightmedia.com>
Thu, 16 Jun 2016 18:27:51 +0000 (14:27 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Thu, 16 Jun 2016 18:27:51 +0000 (14:27 -0400)
setup/frontHooks.php

index 888dbb4..d5cd38d 100644 (file)
@@ -44,7 +44,7 @@ add_filter('init', function() {
     $rules = get_option( 'rewrite_rules' );
     if ( ! isset( $rules['('.$this->config['settings']['canonical_package_page'].')/([^/]*)$'] ) ) {
         global $wp_rewrite;
-        $wp_rewrite->flush_rules();
+// Seems to cause loss of rewrite rules -Need to investigate        $wp_rewrite->flush_rules();
     }
 });
 
@@ -89,7 +89,7 @@ if (isset($this->config['addOns']['glm-member-db'])) {
         10,
         2
     );
-        
+
     add_filter('glm-member-db-front-members-detail-sidemenuBottom', function($content, $id) {
             $packageData = do_shortcode('[glm-members-packaging-list member='.$id.', template="detail-sidemenu" order="title"]');
             $content .= $packageData;