Created
April 24, 2022 22:50
-
-
Save bobbydank/38e8dfb9a980ea9c87adba69db72e117 to your computer and use it in GitHub Desktop.
Elementor - Fix deprecated schema errors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Elementor Scheme Class Issue | |
* | |
* 1) Create wp-content/mu-plugins folder | |
* 2) Create php file (name doesn't matter) | |
* 3) Copy/Paste | |
**/ | |
namespace Elementor; | |
\add_action( | |
'plugins_loaded', | |
function() { | |
if ( ! class_exists( 'Elementor\Scheme_Color' ) ) { | |
class Scheme_Color extends Core\Schemes\Color {} | |
} | |
} | |
); | |
\add_action( | |
'plugins_loaded', | |
function() { | |
if ( ! class_exists( 'Elementor\Scheme_Typography' ) ) { | |
class Scheme_Typography extends Core\Schemes\Typography {} | |
} | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment