Kit ID', 'elementor-pro' ) ), ], ], ], ] ); } public function enqueue_kit_js() { wp_enqueue_script( 'font-awesome-pro', sprintf( self::FA_KIT_SCRIPT_LINK, $this->get_kit_id() ), [], ELEMENTOR_PRO_VERSION ); } public function sanitize_kit_id_settings( $input ) { if ( empty( $input ) ) { delete_option( 'elementor_' . self::FA_KIT_ID_OPTION_NAME ); } return $input; } protected function actions() { parent::actions(); if ( is_admin() ) { add_action( 'elementor/admin/after_create_settings/' . Settings::PAGE_ID, [ $this, 'register_admin_fields' ], 100 ); } if ( $this->get_kit_id() ) { add_filter( 'elementor/icons_manager/native', [ $this, 'replace_font_awesome_pro' ] ); add_action( 'elementor/editor/after_enqueue_scripts', [ $this, 'enqueue_kit_js' ] ); add_action( 'elementor/frontend/after_enqueue_scripts', [ $this, 'enqueue_kit_js' ] ); } } }