From e1633b72110bb0c90abca8507243fb8932c592c1 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Tue, 9 Feb 2016 10:27:00 -0500 Subject: [PATCH] Remove the coupons from front end searches --- index.php | 2 +- models/coupon.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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); -- 2.17.1