Moved all WordPress global functions into 'class-adapter_functions.php' to facilitate life and know what is where.