Category: Wordpress Hooks
-
WordPress – Custom Rest Api for Woocommerce product category filter based on product category slug
Hello to all, welcome again on therichpost.com. In this post, I will tell you, WordPress – Custom Rest Api for Woocommerce product category filter. Post Working: In this post, I am making WordPress rest api, with I am getting woocommerce product by category slug. Here is the code snippet and you need to add this…
Written by

-
Dokan Multi-vendor – How to restrict vendor to add products according to subscription plan?
Hello to all, welcome to therichpost.com. In this post, I will tell you, Dokan Multi-vendor – How to restrict vendor to add products according to subscription plan? if you have any kind you query or requirement then you can comment below. Jassa Thanks
Written by

-
How to add custom meta title and meta description in WordPress?
Hello to all, welcome to therichpost.com. In this post, I will tell you, How to add custom meta title and meta description in WordPress? Post Working: In this post, I am sharing wordpress hook, that will add custom meta title and meta description. I am doing this for my selected wordpress archive. Here is the…
Written by

-
How to add custom field in woocommerce checkout form?
Hello to all, welcome to therichpost.com. In this post, I will tell you, How to add custom field in woocommerce checkout form? Here is the woocommerce hook and you need to add into your theme’s functions.php file: add_action(‘woocommerce_before_checkout_form’, ‘customise_checkout_field’); function customise_checkout_field($checkout) { echo ‘<div id=”customise_checkout_field”><h2>’ . __(”) . ‘</h2>’; woocommerce_form_field(‘giftoption’, array( ‘type’ => ‘textarea’, ‘class’…
Written by

-
How to show custom data in woocommerce order billing details in backend?
Hello to all, welcome to therichpost.com. In this post, I will tell you, How to show custom data in woocommerce order billing details in backend? Post Working: I am showing some custom data to my woocommerce orders section in my wordpress backend and I am doing this with woocommerce hook. Here is the working woocommerce…
Written by

-
How to make custom Woocommerce my order page template WordPress?
Hello to all, welcome again on therichpost.com. In this post, I will tell you, How to make custom Woocommerce my order page template WordPress? Post Working: This post code is useful for, if you want to show seperate user orders items. Each login user can see his/her order woocommerce items. And you can make separate…
Written by

-
How to add download pdf link in woocommerce single product page?
Hello to all, welcome to therichpost.com. In this post, I will tell you, How to add download pdf link in woocommerce single product page? I am showing download pdf link on single product page with help of woocommerce hook. Here is the woocommerce hook and please add carefully into your theme’s functions.php file: add_action(‘woocommerce_before_single_product_summary’,’download_pdf’,11); function…
Written by

-
Woocommerce hook add html to single product thumbnail
Hello to all, welcome to therichpost.com. In this post, I will tell you, Woocommerce hook add html to single product thumbnail. With the help of this code, you will add custom html to product thumbnail image on single product page. Here is the working code and please use this carefully into your theme’s functions.pgp file:…
Written by

-
Woocommerce mini cart add change quantity button
Hello to all, welcome therichpost.com. In this post, I will tell you, how to add Woocommerce mini cart add change quantity buttons? Very soon, I am making video tutorial for this. Woocommerce is the best Ecommerce WordPress Plugin. Woocommerce gives us many features and Mini Cart feature is one of the best. But in Woocommerce Mini…
Written by

-
How to create new user role in WordPress and add capability to that role?
Hello to all, welcome to therichpost.com. In this post, I will tell you, How to create new user role in WordPress and add capability to that role? WordPress is the best part for me in developer websites. We will create new user role like “administrator” with wordpress custom functionality. We will create “employee” user role…
Written by
