WordPress proudly touts its user first design for ease of use, but on other end of the spectrum are the website owners. Even the owner of a simple website is instantly barraged with the seeming jumble of terms, acronyms, and phrases that make up a typical WordPress installation. An experienced WordPress website owner may not
List size of directories in the current folder in terminal
If you would like to list the size of all the directories in your current folder run the following command: [bash]du -a -h –max-depth=1 | sort -hr[/bash] This will provide output similar to [bash] 69M . 36M ./plugins 16M ./.git 14M ./themes 3.4M ./uploads 8.0K ./.DS_Store 4.0K ./upgrade 4.0K ./.revision 4.0K ./index.php [/bash]
Remove admin color scheme picker from WordPress Profiles
If you want to clean up the WordPress user profile page in wp-admin by removing the color scheme picker here is a quick snippet that will do the task quickly for you. [php] remove_action( ‘admin_color_scheme_picker’, ‘admin_color_scheme_picker’ ); [/php]
Add HTML tags to the allowed tags list in WordPress
By default WordPress limits what HTML tags are allowed in post content. If tags that are not whitelisted are found in the content they will be stripped. It is possible add additional tags to the allowed list. View allowed tags To view the list of currently allowed tags you can use the following code: [php]
Script to convert MySQL collation from utf8mb4 to utf8
I ran into a strange situation with WordPress where the MySQL server did not support utf8mb4. I needed to quickly convert the tables back to utf8 to get the site running again. Though this script does work I highly recommend if you are running WordPress that you upgrade your MySQL server to support utf8mb4 for