Usefull functions for the MEM WordPress plugin