Remove the WordPress admin toolbar from site

Sometime client having requirement to disable admin toolbar because its disturbing site layout or maybe we want to remove this toolbar for specific custom wp roles as per client said. So there is 2 ways to achieve this task. First one we can manage it from wordpress backend settings and second one we can hide … Continue reading Remove the WordPress admin toolbar from site

Create a woocommerce order programatically

Some cases we required to create dynamic woocommerce order by programatically. So here we are covering this part below. Woocommerce provided wc_create_order() function to create order by code. This function has array argument and its return wc_order or wc_error.

To the right implementation, in following example we have created one woocommerce product called basic plan. We offering this plan for free. so that means on click of buy we will directly create woocommerce order for that particular user. so for 0 price user dont need to go on cart and checkout page to purchase package. This auto creation of order will skip that cart and checkout process for user.

Overridable plugin templates from theme

Most of the websites owners want to extend some plugins functionality as per their requirement. But as per development perspective developer can’t modify changes directly into plugin, because if plugin get updated then all changes or extra code written in plugin will erase. So whats a solution on it? Solution is while making plugin from … Continue reading Overridable plugin templates from theme

Get product information in woocommerce (Product name, type, id, price, sku etc..)

In day to day development tasks we need specific product information to do some operations on it or else we have to show this information somewhere. But every time it take much time to find its functions and utilize it in our code. So this post is for you guys, if you have product id … Continue reading Get product information in woocommerce (Product name, type, id, price, sku etc..)

Add custom Widget to wordpress admin widget interface

Wordpress is amazing content management system with lots of great builtin features and widget is one of those. Wordpress installation comes with some default widgets. but some times websites or client requirements demand more than it. In this tutorial i am going to explain you to create your own widget so you can provide better … Continue reading Add custom Widget to wordpress admin widget interface

Add custom Metaboxes to wordpress admin post interface

Post Meta Box : WordPress allow us to add custom meta boxes to posts, pages and custom post types via the admin interface. Creating custom meta boxes is extremely simple, at least it is once you’ve created your first one using any tool/plugin made by Wordpress core code. In this tutorial, i will show you … Continue reading Add custom Metaboxes to wordpress admin post interface