/Uis', '', $code); $code = preg_replace('/(?:(?:\/\*(?:[^*]|(?:\*+[^*\/]))*\*+\/)|(?:(?plugin; } $file = plugin_dir_path($plugin_path) . $file_path; if (!file_exists($file)) { return ''; } ob_start(); require($file); return json_decode(ob_get_clean(), true); } /** * Check to see if a full string starts with a specified string. * * @since 2.0.0 * * @access public static * @param string $needle String to check for. * @param string $haystack Full string to check. * @return boolean True if the full string starts with the specified string. */ public static function starts_with($needle, $haystack) { return ( empty($needle) || strpos($haystack, $needle) === 0 ); } }