' . __("You can use any of the h1, h2, h3, h4 etc", 'affiliate-coupon-lite') . ''; break; case 'single_coupon_image': $stores = get_the_terms($post_ID, 'coupon-store'); if ($stores) { $store = $stores[0]; $store_img_url = get_term_meta($store->term_id, 'cp_store_image', true); echo ''; } break; } } /** * Coupon Title Placeholder * * @since 1.0.0 * * @param string $input placeholder text * * * @return string placeholder text */ function change_coupon_title_text($input) { if (!(is_admin() && 'coupon' === get_post_type())) { return $input; } return __('Enter The Coupon Title', 'affiliate-coupon-lite'); } /** * Setting Page Color Picker * * @since 1.0.0 * * * @return void */ function colors_print_scripts() { echo ''; } /** * Coupon Click Behaviour * * @since 1.0.0 * * @return void */ function coupon_click() { if (!isset($_GET['cid'])) { return; } $id = sanitize_key(intval($_GET['cid'])); ?> Upgrade', ); return array_merge($links, $mylinks); } /** * On Activation Show Notice Once * * @since 1.0.0 * * * @return void */ function activation_hook() { set_transient('cp_admin_notice', true, 3600); $options = array( 'coupon_hover_text' => __('SHOW COUPON', 'affiliate-coupon-lite'), 'expiry_msg' => __('Expired On', 'affiliate-coupon-lite'), 'expiry_no_msg' => __('On Going Offer', 'affiliate-coupon-lite'), 'deal_hover_text' => __('ACTIVATE DEAL', 'affiliate-coupon-lite'), 'deal_activated_text' => __('DEAL ACTIVATED', 'affiliate-coupon-lite'), 'coupon_btn_color' => '#741fa2', 'coupon_code_bg_color' => '#741fa2', 'deal_button_color' => '#741fa2', 'deal_button_hover_color' => '#9726d4', 'deal_activated_bg_color' => '#9726d4', ); update_option('affiliate_coupon_lite_settings', $options); } /** * Dissmissible Notice * * @since 1.0.0 * * @return void */ function cp_admin_notices() { if (get_transient('cp_admin_notice')) { ?>

%s', $id, $code); printf('
%s
', $id, $id, $affiliatelink, $coupon_button_text); } else { printf('', $id, $deal_activated_text); printf('
%s
', $id, $deal_class, $id, $affiliatelink, $deal_button_text); } }