To do this open your functions.php file and paste the following code: You can change the pop up message style by modifying what is inside the sw_gf_thx_msg() function.
To do this open your functions.php file and paste the following code: You can change the error message by modifying what is inside the alert () function.
All we need is a definition of the labels that we’re going to use and a few settings. Open up your functions.php file and drop the following into it.
You can use following code to display all post related to certain category of any custom post type.
You can use following code for get all related categories of any post type but you need to keep in mind that post type must support the categories taxonomy . You can make the custom post type support categories while registering the custom post type. You can add following code to enable the categories [...]
To get the category from the category id in custom post type is different than the normal word press . You can grab the category information from the category id by applying following code which returns array.
Please add this code to you functions.php at currently applied theme folder. Here is the example to hide the fields from the billing and shipping section. Here is the example for how to removed required fields checkout fields
Add this bit of code at functions.php
Before beginning,make a backup copy of your database. Login to your database using phpMyAdmin (or whatever), and navigate to the “active_plugins” column of the “wp_options” table using the following SQL query (edit the default WordPress table prefix “wp_” if needed): SELECT * FROM wp_options WHERE option_name = ‘active_plugins’; Once the active_plugins column appears, click to [...]