WordPress’ memory limit can be independently set to anything however will not go over PHP’s own limit. This will retrieve PHP’s memory limit.
Removes all inactive themes. Replace keep_if_inactive with list of themes you wish to keep. WordPress recommends at least 1 default theme
Replace YOUR_PRO_LICENSE_KEY with your Advanced Custom Fields Pro license key.
Changes WordPress database prefix by exporting database, updated references and then re-importing database. Be sure to update db_prefix_new to a new database prefix.
Finds and converts any database tables using MyISAM storage engine to InnoDB.
Changes HTTP references to HTTPS for a certain domain name. Replace my-domain-please-change-me.tld with domain you wish to update URLs.
Will download from a Google Drive shared link using wget. Swap out <google-file-id> and <file-name> with Google’s unique file ID shown in shared URL and a file name where you want to download it to.
Inserts must-use plugin to disable outgoing emails.
Lists out current PHP workers on a site hosted with Kinsta. The output will look similar to the following listing the process id, username, command, memory %, CPU % and total time.
Adds RECOVERY_MODE_EMAIL to wp-config.php file. Replace [email protected] with email address you wish to use for recovery mode.