If you get an out of memory error when running a PHP file from the CLI, you can inline an increased limit for just a single run with the -d memory_limit switch. Examples:
Tag: webdev
If you want classes to change on a child element when something happens on the parent, you might be able to use Tailwind’s group class. src
Custom Tailwind Utility Classes
If you need a one-off custom class that Tailwind doesn’t have built in, you can dynamically generate a Tailwind class to suit your needs. src
From src, but I haven’t tested…
Prerequisites: SSH access to WordPress host server WP-CLI installed on server src
When trying to use a CSS3 function (like min(), calc(), etc) inside a Less (.less) file, you need to escape the native Less function if it has the same name as a CSS function. You can do this using by putting the CSS function in quotes, and prepending that with a ~. Example using CSS […]
WordPress Prompting for FTP Credentials
If you just want to see my recommended permissions for a DocRoot, that is here. When updating plugins, themes, or the WordPress core – or when activating WordFence (and possibly in other situations), you may be prompted for FTP credentials for the webserver. If so, this indicates that WordPress was not able to write to […]
To import a MySQL db: To export a MySQL db: To import to a Docker container To export to a Docker container
Adding/Installing SSL/TLS/HTTPS
Some of these steps can be completed via command line with wp-cli if installed by using commands generated from this tool. To find out if wp-cli is installed, try running wp cli version. Adding the Cert These instructions are for SiteGround hosting with a free Let’s Encrypt certificate. Other hosts support of Let’s Encrypt and […]
PHP Upload Limit Directives php.ini
If you’re having an issue with uploading via PHP, and want to adjust the PHP configuration limits in the .ini file, check the following directives: memory_limit upload_max_filesize post_max_size