From: Steve Sutton Date: Tue, 9 Feb 2016 15:27:00 +0000 (-0500) Subject: Remove the coupons from front end searches X-Git-Tag: v1.1.2^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=e1633b72110bb0c90abca8507243fb8932c592c1;p=WP-Plugins%2Fglm-coupons.git Remove the coupons from front end searches --- diff --git a/index.php b/index.php index 8072f19..b77ceea 100644 --- 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 diff --git a/models/coupon.php b/models/coupon.php index 092eeb2..74e1337 100644 --- a/models/coupon.php +++ b/models/coupon.php @@ -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);