Category: Wordpress
-
How to add script only for woocommerce shop page with wordpress hook?
Hello friends, welcome back to my blog. Today in this blog post, I am going to tell you, How to add script only for woocommerce shop page with wordpress hook? For WordPress lovers must check the below links: WordPress Tricks WordPress Hooks Wordpess Plugin Devs Friends here is the working code snippet for How to…
Written by
-
How to show different menus to logged and non logged in users in wordpress?
Hello friends, welcome again on my blog. Today in this blog post, I am going to show you, How to show different menus to logged and non logged in users in wordpress? For WordPress lovers must check the below links: WordPress Tricks WordPress Hooks Wordpess Plugin Devs Friends here is the working code snippet for…
Written by
-
How to add and delete user role in wordpress?
Hello friends, welcome again on my blog. Today in this blog post, I am going to tell you, How to add and delete user role in wordpress? For WordPress lovers and beginners must check the below links: WordPress Tricks WordPress Hooks Wordpess Plugin Devs Friends here is the working code snippet for How to add…
Written by
-
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
-
WordPress User Registration Frontend
Hello to all, welcome to therichpost.com. In this post, I will tell, WordPress User Registration Frontend. WordPress is the best CMS because it is complete user friendly and WordPress gives us complete flexibility. Here are some working screenshots: Post Working: In this post, I am sharing code for two files, First for footer.php file, In…
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
-
How to add custom field in woocommerce checkout form and validate it?
Hello to all and welcome on therichpost.com. In this post, I will tell you, How to add custom field in woocommerce checkout form and validate it? Woocommerce is the best ecommerce platform and famous wordpress plugin. I just added select options custom fields with select2 functionality. Here is the working hook and you just need…
Written by
-
WordPress send pdf with wp_mail function
Hello to all, welcome to therichpost.com. In this post, I will tell you, WordPress send pdf with wp_mail function. Here is the working code and you can add this code into your main function or any hook: $attachments = array(WP_CONTENT_DIR .’/uploads/2019/08/your-pdf-fine-name.pdf’); $to = ‘user@gmail.com’; $subject = ‘WordPress wp_mail’; $message = “Please check the attached PDF.”;…
Written by