Remove the coupons from front end searches
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 9 Feb 2016 15:27:00 +0000 (10:27 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 9 Feb 2016 15:27:00 +0000 (10:27 -0500)
index.php
models/coupon.php

index 8072f19..b77ceea 100644 (file)
--- a/index.php
+++ b/index.php
@@ -2,7 +2,7 @@
 /**
  * Plugin Name: Gaslight Media Coupons
  * Description: Coupon Application for Gaslight Media Clients.
- * Version: 0.1.1 Beta
+ * Version: 0.1.2 Beta
  * Author: Steve Sutton
  * Author URI: http://www.gaslightmedia.com
  * License: All right reserved
index 092eeb2..74e1337 100644 (file)
@@ -341,6 +341,7 @@ class glm_coupons_coupon
             'show_in_menu'    => true,
             'show_ui'         => true,
             'query_var'       => true,
+            'exclude_from_search' => true,
             'publicly_queryable' => true
         );
         register_post_type(GLM_COUPON_POST_TYPE, $args);