| @@ -25,9 +25,8 @@ | ||
| 25 | 25 | $platform = $this->get_param( 'platform', 'elementor' ); |
| 26 | 26 | $origin = $this->get_param( 'origin', 'remote' ); |
| 27 | 27 | $id = $this->get_param( 'id', 0, 'intval' ); |
| 28 | 28 | $postId = $this->get_param( 'postId', 0, 'intval' ); |
| 29 | - $settings = $this->get_param( 'settings', [], null ); | |
| 30 | 29 | |
| 31 | 30 | if( $id <= 0 || $id == null ) { |
| 32 | 31 | return $this->error('invalid_item_id', __( 'Invalid ID is provided.', 'templately' ), 'get_content', 404 ); |
| 33 | 32 | } |
| @@ -74,9 +73,9 @@ | ||
| 74 | 73 | 'insert', 404 |
| 75 | 74 | ); |
| 76 | 75 | } |
| 77 | 76 | |
| 78 | - return $this->platform( $platform )->insert( $template_data, $postId, $settings ); | |
| 77 | + return $this->platform( $platform )->insert( $template_data, $postId ); | |
| 79 | 78 | } |
| 80 | 79 | |
| 81 | 80 | private function get_cloud_content( $id = null, $platform = 'elementor' ){ |
| 82 | 81 | $response = $this->http()->query( |
| @@ -208,5 +207,5 @@ | ||
| 208 | 207 | Utils::add_gd_editor_filter(); |
| 209 | 208 | |
| 210 | 209 | return $this->platform( $platform )->create_page( $id, $title, $this, $settings ); |
| 211 | 210 | } |
| 212 | -} | |
| 211 | +} | |