prefix = $settings->getPrefix(); add_action( 'elementor/controls/register', [ $this, 'register_controls' ] ); } public function register_controls() { if ( defined( 'ELEMENTOR_PATH' ) && class_exists( 'Elementor\Element_Base' ) ) { if ( class_exists( 'Elementor\Plugin' ) ) { if ( is_callable( 'Elementor\Plugin', 'instance' ) ) { $elementor = Plugin::instance(); if ( isset( $elementor->controls_manager ) ) { //Files controls list $controls = array( 'group_control_typography', 'ajax_control', ); foreach ($controls as $key => $control_name) { $path = stratum_get_plugin_path( '/includes/controls/' . $control_name . '.php' ); if ( file_exists( $path ) ) { require_once( $path ); } } } } } } } }