-
WP-CLI – List All User Roles with Specific Capability
I have stumbled upon a use case where a list of user roles must be retrieved given a specific capability. The following code accomplishes that. Here is the WP-CLI command to obtain a list of WordPress user roles with the upload_files capability. You can adjust the capability to your desired use: I have also added…
-
Setup PHPCBF on VS Code for Mac (WordPress PHPCS)
I have finally been able to set up PHPCBF (automatic lint fixing) with PHP Coding Standards for the Mac. It has been a long struggle of technical difficulties over different apps. How to set up automatic PHPCBF Open VS Code Open the Command Palette CMD+Shift+P and search for Tasks: Open User Tasks. Hit Enter. Paste…
-
ERR_CONNECTION_RESET on WordPress Site
What should you do if you face the error ERR_CONNECTION_RESET with your WordPress files? This should be a clue to figuring it out.
-
Remove WooCommerce Admin Notice for Outdated Theme Template Files
This is controversial… but you might want to remove the outdated theme template files nag within WP Admin. Here is how you can do so, and why.
-
WooCommerce Term Meta Is Deprecated, Use This Instead.
You should stop using woocommerce_term_meta by now, because it is deprecated. Use this function instead which is running on the WordPress Core, meaning it is suitable almost forever!
-
How to Install WordPress Code Standards using Composer on Mac
WordPress Coding Standards are significant if you want to become a professional WordPress developer or a PHP developer. Here is how to install it on your Mac.