When managing sites for clients it can be helpful to know when they may be in trouble. The below code allows me to get a notification whenever an account with elevated privileges has a password changed or changes their own password. This should catch an […]
Code Ninjas Content
Unleash your inner Code Ninja with 7th Circle Designs! As a Code Ninja member, access an exclusive collection of WordPress and WooCommerce code snippets, along with integration solutions for various plugins. Elevate your web development game with expertly crafted code, suitable for all skill levels and project needs. Say goodbye to tedious searching and debugging, and embrace a faster, more efficient path to creating stunning websites. Join today and unlock the true power of WordPress!
When you run an eCommerce or membership site you can have a lot of user created on your site for legitimate purposes. For that reason I usually unhook all user creation emails and replace that with the below code. This allows me to get a
With privilege escalation attacks on the rise I have been looking to implement some extra notifications on sites. This little gem is a great way to get an email whenever a user access role is changed. You can modify this easily to change the address
For those of you that can’t wait for WooCommerce to enable the block editor, use the member’s only code below in your favorite code snippet plugin, your functions.php, or a custom plugin. Members can access the code below.
Generate a WordPress Code Snippet That Removes WooCommerce Product Meat From a Single Product Category
Recently I was working on a project that required the display removal of the WooCommerce product meat (category, tags, sku) from a single product category. The below code will do just that and can be adapted for multiple categories or tags. Members can access the