add_action( ‘wp_ajax_validate_vanity_code’, ‘send_vanity_coupon_request_notification’, 9 ); function send_vanity_coupon_request_notification() { if ( ! isset( $_REQUEST[‘vccNonce’] ) || ! wp_verify_nonce( $_REQUEST[‘vccNonce’], ‘request_vanity_coupon_code’ ) ) { return; } $affiliate_id = isset( $_REQUEST[‘affiliateID’] ) ? sanitize_text_field( $_REQUEST[‘affiliateID’] ) : false; $coupon_id = isset( $_REQUEST[‘couponID’] )…Continue reading
/** * Fix: Force query string format for all affiliate referral URLs. * * Part 1: Updates the in-memory settings so the portal URL generator * and affwp_get_affiliate_referral_url() both produce ?ref=value * format instead of /ref/value/ format. No database change.…Continue reading
/** * PN FluentCommunity Auto-Delete Diagnostics * No debug.log required */ if (!defined(‘ABSPATH’)) { exit; } /* |————————————————————————– | Enable main snippet internal logs too |————————————————————————– */ add_filter(‘pn_fcom_enable_debug_log’, ‘__return_true’); /* |————————————————————————– | Constants |————————————————————————– */ if (!defined(‘PN_FCOM_DIAG_OPTION’)) { define(‘PN_FCOM_DIAG_OPTION’, ‘pn_fcom_diag_entries’);…Continue reading
add_action(‘init’, function () { add_rewrite_rule(‘^meta-checkout/?$’, ‘index.php?meta_checkout=1’, ‘top’); }); add_filter(‘query_vars’, function ($vars) { $vars[] = ‘meta_checkout’; return $vars; }); add_action(‘template_redirect’, function () { if (!get_query_var(‘meta_checkout’)) { return; } if (!function_exists(‘WC’) || !WC()->cart) { return; } // Clear current cart so Meta…Continue reading
/** * ============================================================ * Cart Page — Security Trust Badge Bar * ============================================================ * * PURPOSE: Adds a clean trust badge row below the “Proceed to * Checkout” button on the cart page to increase * conversion confidence. * *…Continue reading
function youtube_dashboard() { $api_key = “AIzaSyBzzf22Vs5sMf1eoCuhN3-0Qtnj0EKu7Bk”; $channel_id = “102319916649-hmjdaecid7f96ql384nd80ie8mn13fjj.apps.googleusercontent.com”; // ganti channel kamu $url = “https://www.googleapis.com/youtube/v3/channels?part=snippet,statistics&id=$channel_id&key=$api_key”; $response = wp_remote_get($url); if (is_wp_error($response)) { return “Error ambil data”; } $body = json_decode(wp_remote_retrieve_body($response), true); $data = $body[‘items’][0]; $title = $data[‘snippet’][‘title’]; $subs = $data[‘statistics’][‘subscriberCount’];…Continue reading