: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
(defined('ABSPATH') && defined('EMBEDPRESS_IS_LOADED')) or die("No direct script access allowed.");
* @author EmbedPress <help@embedpress.com>
* @copyright Copyright (C) 2023 WPDeveloper. All rights reserved.
* @license GPLv3 or later
* Returns true if is WordPress 5.x or any beta version.
public static function isWordPress5()
return version_compare($wp_version, '5.0', '>=') || substr($wp_version, 0, 2) === '5.';
public static function isClassicalEditorActive()
$isActive = is_plugin_active('classic-editor/classic-editor.php');