/** * Instead $GLOBALS['wp_filesystem']->get_contents( $file ) * * @param type $url host url. * @return string requres data */ public static function get_contents($url) { $wp_filesystem = sefl::get_wp_filesystem(); $wp_filesystem->get_contents($url); return $data; }