Useful functions for the MEM WordPress plugin