WordPress

How to add custom classes to the body tag in WordPress?

How to add custom classes to the body tag in WordPress?

WordPress is most common CMS used all around the world. It is developer friendly cms that helps developers to customize as they want. Sometimes, developers need to add extra classes to body. In this blog post, we will discuss how to custom classes to body tag. To add custom classes to the body tag you …

How to add custom classes to the body tag in WordPress? Read More »

What is the difference between add_filter and apply_filters

What is the difference between add_filter and apply_filters?

Introduction add_filter() and apply_filters() are two WordPress function which are often difficult to understand how these two functions work together. In this blog post, how to use add_filter() and apply_filters()effectively. How apply_filter works? Most updated information about using WordPress functions can be found on the Codex: apply_filters( $tag, $value, $var_1, $var_2, … ); Calls the callback functions that have …

What is the difference between add_filter and apply_filters? Read More »

How to Change WooCommerce Coupon Error Messages

How to Change WooCommerce Coupon Error Messages?

How to Change WooCommerce Coupon Error Messages ? WooCommerce is a powerful eCommerce platform.  In order to change WooCommerce coupon error messages you will need access to the functions. PHP file of your active theme. If you would like to change the default woocommerce error message that I get when client enters a coupon than you …

How to Change WooCommerce Coupon Error Messages? Read More »

How to make a custom column on the Users admin screen sortable

How to make a custom column on the Users admin screen sortable?

Sometimes, we need to add a new column on the users admin screen sortable. In this blog post you will learn how to add custom column in All users menu in the backend. Here is the code that allows to add custom fields. In this example we would add company name as a custom field. …

How to make a custom column on the Users admin screen sortable? Read More »

How to add meta box in WordPress?

How to add meta box in WordPress? Adding meta box is a very simple task to complete. It includes two hooks, one for displaying meta box in backend admin panel and other for saving meta fields in the database., and three functions to complete the process. Firstly add function labo_client_meta_boxes(), this function includes add_meta_box() wordpress function. …

How to add meta box in WordPress? Read More »

How to remove input fields from Checkout page in Woo-Commerce?

How to remove input fields from Checkout page in Woo-Commerce? There are simple steps to remove any field from checkout form. A PHP function unset( ); is used to remove fields in checkout page. To do so, open functions file of current theme. Add a new function to unset the fields to unset. $field variabe …

How to remove input fields from Checkout page in Woo-Commerce? Read More »