/** * Class that handles wholesale price HTML generation and display. * * @since 1.0.0 */ class WWP_Wholesale_Price_HTML_Handler { /** * Model that houses the logic of retrieving information relating to wholesale role/s of a user. * * @since 1.5.0…Continue reading
/* Import Playfair Display font from Google Fonts */ @import url(‘https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap’); /* Ensure consistent box model */ .countdown-container-custom, .countdown-segment-custom { box-sizing: border-box; } /* Main Container Styling */ .countdown-container-custom { text-align: center; padding: 40px 15px; background-color: #1a1a1a; background-image: url(‘https://lightsatthefair.com/wp-content/uploads/sites/5/2025/07/d6fb9991-6832-4b5c-bbfb-8029f85998e2-1024×676.png’); background-size:…Continue reading
add_action(‘pre_get_posts’, function($query) { if (!is_admin() && $query->is_main_query() && is_category()) { $sticky_posts = get_option(‘sticky_posts’); if (!empty($sticky_posts)) { add_filter(‘posts_orderby’, function($orderby, $query) use ($sticky_posts) { if (!is_admin() && $query->is_main_query() && is_category()) { global $wpdb; $sticky_list = implode(‘,’, array_map(‘intval’, $sticky_posts)); return “FIELD({$wpdb->posts}.ID, {$sticky_list}) DESC,…Continue reading
// Author: Sumaiya, Anytype Doc: anytype://object?objectId=bafyreidxkc6k7pjtb37uk6g56dgnu6znpyciu7rjdqwwwzuzceuqr6d3ti&spaceId=bafyreih4bocrmskuomcrks3sjwpnzxpbxvxwgto23vof3umg2fywdqzjmy.31bq39w6q8ru7&cid=bafybeifc55atash7zlqcjd3fv425bkwl7z5zstcxdilct5hstlng73xwci&key=6kKA3QiwnksqLbpcJ4T6UhmQ5BHzgJUfbpn1QLnkv5Lv // —————————————————————- // // — Part 1: Create the Secure API Endpoint for Contact Data —- // // —————————————————————- // /** * Register a custom REST API endpoint at /wp-json/custom/v1/contact-data * This is what…Continue reading
/* Disable WordPress Admin Bar for all users */ add_filter( ‘show_admin_bar’, ‘__return_false’ );Continue reading
if( function_exists(‘acf_add_options_page’) ) { acf_add_options_page(); } // // 1. Register ACF Field for Menu JSON add_action(‘acf/init’, function() { if( function_exists(‘acf_add_local_field_group’) ) { acf_add_local_field_group(array( ‘key’ => ‘group_menu_json_import’, ‘title’ => ‘Menu Import’, ‘fields’ => array( array( ‘key’ => ‘field_menu_json’, ‘label’ => ‘Menu…Continue reading