Find PHP error log here /tmp/php_errors.log
WP Error Reporting without editing wp-config.php
I don’t recall where I found this… Add this to your theme’s functions.php to turn on error reporting in WordPress. This way you don’t have to edit core files, and you have easy access to turn it on and off. Just remember to remove it or comment it out before you go live! // Show all errors, […]
Super Basic Bash Script for WP-CLI Import
Did my first WordPress import today using wp-cli. After unzipping the export file, I was looking at 157 xml files. Seemed plausible I could just point wp-cli import to the folder containing them, but all I got was an error: This does not appear to be a WXR file, missing/invalid WXR version number. Fortunately, I recently […]
Custom Post Updated Messages
For my first CPT, it seemed great that I could hook a function to post_updated_messages and customize the post messages. When I tried the same for 4 CPTs, only the last filter added was having any effect. Here’s my new DRY method. function set_custom_messages( $messages ) { global $post, $post_ID; $post_type = get_post_type( $post_ID ); $obj […]
Ubuntu Boot Volume full of Old Kernels
Get current kernel uname -r List all installed kernels dpkg –list | grep linux-image Remove kernels lower than current ( maybe save 1 ) sudo apt-get purge linux-image-x.x.x.x-generic Update Grub2 sudo update-grub2
How to Change WordPress Multisite Domain Name
http://halfelf.org/2014/changing-domain-name-multisite/ which referenced this, as well https://github.com/interconnectit/Search-Replace-DB