How to change WordPress default email’s From name and address

You are probably reading this post because have already noticed, that every time someone submitted a comment on your blog, signed up as a user or did anything that required WordPress to generate and send an email, by default the “From Name” in that message appeared as “WordPress” and “From” address was “wordpress@your-domain.com”. If this[…]

Customised WordPress Admin Filters in the backoffice

Creating the Select Drop Down Using the ‘restrict_manage_posts’ Filter The first thing that needs to be done is the creation of the select drop down for the two additional filters we will be making. You will need to navigate over to your child themes functions.php file (or another applicable file) and add code which will[…]

How to change maximum email size in cPanel/WHM

How to change maximum email size in cPanel/WHM There is no max file size limit that can be sent and received, however, cPanel defaults the limit to 50mb. You can change this in cPanel. To change this do the following, Login to cPanel as admin Under Service Configuration, Click “exim Configuration Manager” Click “Advanced Editor”[…]

WooCommerce – Redirect to a custom page after logging out

By default, WooCommerce will redirect customers to the My Account page after logging out. However, you may want them to go somewhere else – here’s how. Firstly, you’ll need to make sure that you are overriding the default WooCommerce template files in your theme. If you’ve already got a woocommerce folder in your theme’s directory,[…]

WooCommerce – Redirect to a custom page after logging in based on the user role

By default WooCommerce redirects the user to the My Account page after a successful login. You may change this and use a custom URL based on the user role, like the Dashboard for admins and My Account page for customers. To do this, add this code at the end of the file functions.php located in[…]

WooCommerce – Redirect to a custom page after logging in for All Users

Sometimes you may want to send users to a unique or custom URL after logging in through WooCommerce. No need for additional plugins or complicated code. Just add the following code to the custom functions area of your functions.php file. // Custom redirect for users after logging in add_filter(‘woocommerce_login_redirect’, ‘wcs_login_redirect’); function wcs_login_redirect( $redirect ) {[…]

How to Set a Firewall on cPanel & WHM’s Services

CSF (ConfigServer Security & Firewall) ConfigServer provides the free WHM plugin CSF, which allows you to modify your iptables rules within WHM. It is a stateful packet inspection (SPI) firewall, login and intrusion detection mechanism, and general security application for Linux servers. Important: We do not recommend that you use these examples. Instead, make certain[…]

WooCommerce – How to change “Add to cart” button text, Tips & Tricks

I’d like to share how to change “Add to cart” text of the WooCommerce. Change the add to cart text on product archives Add the following to your functions.php file under your activated theme. WooCommerce <2.1 WooCommerce 2.1+ Change the add to cart text on single product pages Add the following to your functions.php file[…]