| @@ -4,8 +4,9 @@ | ||
| 4 | 4 | use Elementor\Controls_Manager; |
| 5 | 5 | use Elementor\Core\Base\Module as BaseModule; |
| 6 | 6 | use Elementor\Core\Common\Modules\Connect\Module as ConnectModule; |
| 7 | 7 | use Elementor\Element_Base; |
| 8 | +use Elementor\Modules\Ai\Feature_Intro\Product_Image_Unification_Intro; | |
| 8 | 9 | use Elementor\Plugin; |
| 9 | 10 | use Elementor\Core\Utils\Collection; |
| 10 | 11 | use Elementor\Modules\Ai\Connect\Ai; |
| 11 | 12 | use Elementor\User; |
| @@ -123,8 +124,9 @@ | ||
| 123 | 124 | add_action( 'admin_init', [ $this, 'enqueue_ai_products_page_scripts' ] ); |
| 124 | 125 | add_action( 'current_screen', [ $this, 'enqueue_ai_single_product_page_scripts' ] ); |
| 125 | 126 | add_action( 'wp_ajax_elementor-ai-get-product-images', [ $this, 'get_product_images_ajax' ] ); |
| 126 | 127 | add_action( 'wp_ajax_elementor-ai-set-product-images', [ $this, 'set_product_images_ajax' ] ); |
| 128 | + Product_Image_Unification_Intro::add_hooks(); | |
| 127 | 129 | } |
| 128 | 130 | } |
| 129 | 131 | |
| 130 | 132 | add_action( 'enqueue_block_editor_assets', function() { |
| @@ -1109,10 +1111,8 @@ | ||
| 1109 | 1111 | ]; |
| 1110 | 1112 | } |
| 1111 | 1113 | |
| 1112 | 1114 | public function ajax_ai_upload_image( $data ) { |
| 1113 | - $this->verify_upload_permissions( $data ); | |
| 1114 | - | |
| 1115 | 1115 | if ( empty( $data['image'] ) ) { |
| 1116 | 1116 | throw new \Exception( 'Missing image data' ); |
| 1117 | 1117 | } |
| 1118 | 1118 | |