Sorry, but the page you are looking for is not found. Please, make sure you have typed the current URL.
GO TO HOME
ATS FILE v2 LOADED OK
'; }); /** * Re // TEMP: reset opcache add_action('wp_ajax_ats_reset_opcache', function() { if (function_exists('opcache_reset')) { opcache_reset(); echo 'reset'; } else { echo 'no opcache'; } die(); }); commended way to include parent theme styles. * Please see http://codex.wordpress.org/Child_Themes#How_to_Create_a_Child_Theme */ add_action('wp_enqueue_scripts', 'theme_enqueue_styles', 998); function theme_enqueue_styles() { wp_enqueue_style('flozen-style', get_template_directory_uri() . '/style.css'); wp_enqueue_style('flozen-child-style', get_stylesheet_uri()); } /** * Your code goes below */ function wc_get_product_id_by_variation_sku($sku) { $args = array( 'post_type' => 'product_variation', 'meta_query' => array( array( 'key' => '_sku', 'value' => $sku, ) ) ); // Get the posts for the sku $posts = get_posts( $args); if ($posts) { return $posts[0]; } else { return false; } } function wc_minimum_cart_value() { // Set the minimum cart value $minimum = 10; if ( WC()->cart->total < $minimum ) { // Display error message on the cart page if( is_cart() ) { wc_print_notice( sprintf( 'Your current cart total is %s — you must have an order with a minimum of %s to place your order.' , wc_price( WC()->cart->total ), wc_price( $minimum ) ), 'error' ); } else { // Display error message on the checkout page wc_add_notice( sprintf( 'Your current cart total is %s — you must have an order with a minimum of %s to place your order.' , wc_price( WC()->cart->total ), wc_price( $minimum ) ), 'error' ); } } } // Hook to enforce the minimum cart value during the checkout process add_action( 'woocommerce_checkout_process', 'wc_minimum_cart_value' ); // Hook to enforce the minimum cart value before displaying the cart add_action( 'woocommerce_before_cart' , 'wc_minimum_cart_value' ); // Hook to enforce the minimum cart value on the checkout page add_action( 'woocommerce_before_checkout_form', 'wc_minimum_cart_value', 20 ); function disable_cart_and_checkout_buttons() { // Set the minimum cart value $minimum = 10; if ( WC()->cart->total < $minimum ) { ?> id, ['edit-product', 'edit-page', 'edit-post'])) { echo ''; } }); // ===== WHOLESALE PAGE STYLES ===== add_action('wp_head', function() { if (is_page('wholesale')) { echo ''; } }); // ===== DARK GOLD THEME — PHASE 2 ===== add_action('wp_head', function() { if (is_admin()) return; echo ''; }, 999); // ============================================================ // PHASE 3 — Homepage Additional Sections // ============================================================ add_filter('the_content', function($content) { if (!is_front_page() && !is_home()) return $content; $sections = '| Status | Tick to grant premium_member role. Untick to remove. |
|---|---|
| Expiry Date | Leave blank for 1 year from today. |
| Year Spend (S$) | Cumulative spend this year. S$3,000 = free renewal. |
⭐ Premium membership granted to ' . (int)$_GET['ats_granted'] . ' user(s).
Premium membership revoked from ' . (int)$_GET['ats_revoked'] . ' user(s).
Sorry, but the page you are looking for is not found. Please, make sure you have typed the current URL.
GO TO HOMENew here? Create an account
Already got an account? Sign in here
Sorry. No results match your search.