• Skip to main content
  • Skip to footer

Notes to Self

  • Aviation Weather from NOAA Plugin
    • KZZV
    • Bad Shortcode
    • Simple Metar
  • Meetings

Mark Chouinard / July 23, 2014

Vagrant PHP Error Log

Find PHP error log here /tmp/php_errors.log

Mark Chouinard / July 19, 2014

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, […]

Mark Chouinard / July 17, 2014

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 […]

Mark Chouinard / May 28, 2014

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 […]

Mark Chouinard / May 26, 2014

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  

Mark Chouinard / April 26, 2014

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

« Previous Page
Next Page »

Footer

Copyright © 2025 · machouinard · Log in