worldpay class not working with namespace in WordPress September 25, 2022 by Tarik Billa Have you tried: require_once(__DIR__ .'/init.php');