
Similar Posts
WordPress codex for page
How to get the current page slug? global $post; $slug = get_post( $post )->post_name;
Multi str_replace php
str_replace( array( ‘<‘, ‘>’, ‘/’, ‘,’, ‘{‘, ‘}’, ‘?’, ‘*’ ), ”, $value[0]->post_content )

Add Woocommerce product category image using GeneratePress WordPress theme
Add Woocommerce product category image using GeneratePress WordPress theme in few steps. You need to access your functions.php. Either on a parent theme or a child theme. In my case I’m using a child theme so gonna paste the codes below on child themes functions.php Please copy the code below and paste it into your…
1 day expiration using jQuery codes
jQuery( document ).ready(function($){ if ( document.cookie.indexOf( ‘visited=true’ ) == -1 ){ var number_of_days = 1; // 1 Day var total_of_days = 1000*60*60*24*number_of_days; var expiration = new Date( ( new Date() ).valueOf() + total_of_days ); document.cookie = "visited=true;expires=" + expiration.toUTCString(); } });
Woocommerce add to cart redirection using WooCommerce – Gravity Forms Product Add-Ons plugins.
After clicking add to cart button in product category, this will be redirecting to single product and the same time your current product is added to cart page. How to do that? Follow the steps bellow. Step 1: Make sure to change the product URL. Just add “?add_to_cart=true” after the product URL. Example. http://www.wptaskforce.com/product/baby-boy-bouquet/?add_to_cart=true Step…

Woocommerce shop add ” Default Product Sorting ” drop down option.
function woocommerce_shop_ordering_add_option( $sort_args ){ $orderby_value = isset( $_GET[’orderby’] ) ? woocommerce_clean( $_GET[’orderby’] ) : apply_filters( ‘woocommerce_default_catalog_orderby’, get_option( ‘woocommerce_default_catalog_orderby’ ) ); if ( ‘alphabetical’ == $orderby_value ) { $sort_args[’meta_key’] = ‘property_priority’; $sort_args[’orderby’] = ‘meta_value’; $sort_args[’order’] = ‘DESC’; } return $sort_args; } add_filter( ‘woocommerce_get_catalog_ordering_args’, ‘woocommerce_shop_ordering_add_option’ ); function woocommerce_catalog_orderby_add_option( $sortby ) { $sortby[’alphabetical’] = ‘Sort by STC’; return…
Many thanks if you are so kind to fairly share this information.