A meta box is a draggable box displayed in the post editing screen in the backend of WordPress. Users can select or enter extra information in meta boxes addition to the content in the main post editing area. There are two types of data you can enter in meta boxes: metadata (i.e. custom fields), and […]
Custom Taxonomies are same like categories and tags. WordPress allows developers to create Custom Taxonomies. Custom Taxonomies are useful when one wants to create distinct naming systems and make them accessible behind the scenes in a predictable way. Create Custom Taxonomies by code. Add below Code in function.php file of your active child theme (or […]
Custom post types are same like posts and pages. By default WordPress comes with a few different post types which are all stored in the database under the wp_posts table. Default Post Types Posts Pages Attachments Revisions Navigation Menus Custom CSS Changesets We can create your own custom post types and call them whatever we […]
In Cakephp, contained .htaccess files are as follows: /.htaccess /app/.htaccess /app/webroot/.htaccess /var/www/app/webroot/.htaccess /var/www/app/.htaccess /var/www/.htaccess
Redirecting the user to the checkout page when they’ve added a product to their cart. This may come in handy if you only sell one product / one product per time. The filter woocommerce_add_to_cart_redirect makes it easy to redirect user to custom page. Code goes in function.php file of your active child theme (or active […]
comment_form_defaults filter allow to change comment form title “Leave a comment” to other custom text, filter comment_form_defaults help you to change it. Code goes in function.php file of your active child theme (or active theme).
Change “Return to Shop” Button text in WooCommerce a WordPress plugin this is quit easy to change it using gettext filter. If you are not using shop or name it something like back to home or store. Code goes in function.php file of your active child theme (or active theme).
WooCommerce default redirect on shop page when Cart is empty. The filter woocommerce_return_to_shop_redirect makes it easy to change Return to shop link. Code goes in function.php file of your active child theme (or active theme).
We can add product to WooCommerce cart using add_to_cart() function with $product_id. Code goes in function.php file of your active child theme (or active theme).