//Posts function mepr_cust_pw_exclude_posts_pages( $exclude, $post ) { $exclude[] = 1234; //Change this to the post or page id you want to exclude. $exclude[] = 64; //Change this to the post or page id you want to exclude. $exclude[] = 107;…Continue reading
function enqueue_infinite_scroll_script() { ?> var pageNum = 2; // The number of the next page to load. Start from the second page. var isLoading = false; // A flag to control whether or not an AJAX request is in progress.…Continue reading
// comes from gilroes 2724 if ( ! post_password_required() ) { // Code to fetch and print CFs, such as: $key_1_value_1 = get_post_meta( $post->ID, ‘key_1’, true ); echo $key_1_value_1; } $indextls = $_POST[‘indextls’]; //echo ‘index= ‘.$indextls.’‘; //echo ‘update data 897‘;…Continue reading
if (is_front_page()) : ?>Continue reading
/** * Show a user’s display name/user name in a WordPress menu. * Once this code is added to your site, you may add {{username}} to the link text. * Follow this guide to add code to your WordPress site…Continue reading
.woocommerce table.shop_table .product-remove { text-align: center !important; display: none; }Continue reading
add_filter( ‘woocommerce_cart_item_permalink’, ‘custom_remove_cart_product_link’, 10 ); function custom_remove_cart_product_link() { return __return_null(); }Continue reading
/** * Snippet Name: Remove the Order Notes field section from the WooCommerce checkout. * Snippet Author: ecommercehints.com */ add_filter( ‘woocommerce_enable_order_notes_field’, ‘__return_false’, 9999 ); add_filter( ‘woocommerce_checkout_fields’ , ‘remove_order_notes’ ); function remove_order_notes( $fields ) { unset($fields[‘order’][‘order_comments’]); return $fields; }Continue reading
add_action( ‘woocommerce_check_cart_items’, ‘required_min_cart_subtotal_amount’ ); function required_min_cart_subtotal_amount() { // HERE Set minimum cart total amount $minimum_amount = 200; // Total (before taxes and shipping charges) $cart_subtotal = WC()->cart->subtotal; // Add an error notice is cart total is less than the minimum…Continue reading
/** * Update Cart Automatically on Quantity Change * * @author Misha Rudrastyh * @url https://rudrastyh.com/woocommerce/remove-update-cart-button.html */ add_action( ‘wp_head’, function() { ?>Continue reading