To add information for message of new order only for admin. This code snippet is for funtions.php file, sets global variable about info of mail message, and adds a custom info to table cell of new order, if the mail message is for admin of WooCommerce .
Remove action or filter
In order to remove action or filter, you should use funtions : remove_action () or remove_filter () in your theme’s functions.php file Example:
A list of all WordPress hooks
All available WordPress actions and filters with version history –https://adambrown.info/p/wp_hooks
Taking a walk in Vilnius city center
Taking another long walk in Vilnius, city center.
Taking a long walk in golden autumn
Taking a long walk on a sunny day in Vilnius in late autumn. Few photos here of these fabulous days.
Verkiu park
Admin user account and a little more security
Recommended to create a new admin user, and using PHP MyAdmin delete the original old one in MySql databse. It would be better for security, because the original user account has an ID of 1 and it is the usual hackers target.
WordPress debug mode configuration and show error notifications
wp-config.php file configurations: Not to make log file accessible, you should add these lines on .htaccess file in log file directory.
Variable product dropdown option text change, WooCommerce
Example text is red coloured for another variable product situation, include this to functions.php
Add custom jQuery script to WordPress theme
And jQuery script “js-custom.js” when website is loaded, jQuery file location: “YourTheme/js/js-custom.js” jQuery file location: “YourTheme/js/js-custom.js” When jQuery is used for WordPress script must use jQuery instead of $ sign.