Month: July 2018
-
Woocommerce hook to redirect user after login based on users
Hello to all, welcome to therichpost.com. In this post, I will tell you, Woocommerce hook to redirect user after login based on users. I am redirecting different users to different pages after woocommerce login based on usernames. Here is the working code for Woocommerce hook to redirect user after login based on users and you need to…
Written by
-
How to add banner image woocommerce shop page with hook?
Hello to all, welcome to therichpost.com. In this post, I will tell you, How to add banner image woocommerce shop page with hook? I am sharing two hooks and both are working. Here is the working code for How to add banner image woocommerce shop page with hook? and you need to add this code into your…
Written by
-
Hook meaning in wordpress
Hello to all, welcome to therichpost.com. In this post, I will tell you all the simple definition of wordpress hooks. WordPress Hooks means: Hooks are the that functions, which change the working of wordpress main functions without interrupting the core files or code functions and same for wordpress plugins. Hooks are the two types: add_action…
Written by
-
Woocommerce get order total on daily basis
Hello to all, welcome to therichpost.com. In this post, I am sharing the code for, how to get Woocommerce get order total on daily basis? Woocommerce is the best e-commerce plugin for shopping websites. Here is the working code for Woocommerce get order total on daily basis: // functions.php file code function get_daily_purchases_total(){ global $wpdb; return $wpdb->get_var(…
Written by
-
How to remove image from wordpress post content?
Hello to all, welcome to therichpost.com. In this post, I will tell you, How to remove image from wordpress post content? Here is the working code and you can add this into your wordpress theme’s any template file: $content = get_post_field(‘post_content’, $post_id); $content = preg_replace(“/<img[^>]+\>/i”, “”, $content); //or $content = get_the_content(); $content = preg_replace(“/<img[^>]+\>/i”, ” “,…
Written by
-
Woocommerce checkout page notices
Hello to all, welcome to therichpost.com. In this post, I am sharing the code for Woocommerce checkout page notices. Woocommerce is the most popular e-commerce plugin for WordPress. With this hook, you can add custom notification on woocommerce checkout page. I have also shared the code for woocommerce cart page noticies on previous post. Here…
Written by
-
Woocommerce custom code in Woocommerce archive page
Hello to all, welcome to therichpost.com. In this post, I am sharing the code for Woocommerce custom code in Woocommerce archive page. Woocommerce is the most popular e-commerce plugin for WordPress. Here is the working code and you need to add this into woocommerce archive page template: <!– cunstom code –> <div class=”row”> <div class=”col-md-3…
Written by
-
Woocommerce custom shop page wordpress template
Hello to all, welcome to therichpost.com. In this post, I am sharing the code to make Woocommerce custom shop page wordpress template. Woocommerce is the most popular e-commerce plugin for WordPress. It is very easy to use and integrate and there are also so many hooks in Woocommerce, which makes woocommerce customization very easy. Here is…
Written by