/** * POS Frontend will give 404 if pretty permalinks not active * - requires autoloader, ie: WC_POS() */ private function permalink_check() { $fail = WC_POS_Status::permalinks_disabled(); if ($fail) { $message = $fail['message'] . '. '; $message .= sprintf('<a href="%s">%s</a>', $fail['buttons'][0]['href'], $fail['buttons'][0]['prompt']) . ' »'; WC_POS_Admin_Notices::add($message); } }