| @@ -4,9 +4,9 @@ | ||
| 4 | 4 | use Elementor\Core\Common\Modules\Connect\Apps\Base_App; |
| 5 | 5 | use Elementor\Core\Common\Modules\Connect\Apps\Library; |
| 6 | 6 | |
| 7 | 7 | if ( ! defined( 'ABSPATH' ) ) { |
| 8 | - exit; // Exit if accessed directly. | |
| 8 | + exit; // Exit if accessed directly | |
| 9 | 9 | } |
| 10 | 10 | |
| 11 | 11 | class Kit_Library extends Library { |
| 12 | 12 | const DEFAULT_BASE_ENDPOINT = 'https://my.elementor.com/api/v1/kits-library'; |
| @@ -15,14 +15,10 @@ | ||
| 15 | 15 | public function get_title() { |
| 16 | 16 | return esc_html__( 'Kit Library', 'elementor' ); |
| 17 | 17 | } |
| 18 | 18 | |
| 19 | - public function get_all( $args = [] ) { | |
| 20 | - return $this->http_request( 'GET', 'kits/plugin-version/' . ELEMENTOR_VERSION, $args ); | |
| 21 | - } | |
| 22 | - | |
| 23 | - public function get_by_id( $id ) { | |
| 24 | - return $this->http_request( 'GET', 'kits/' . $id ); | |
| 19 | + public function get_all() { | |
| 20 | + return $this->http_request( 'GET', 'kits' ); | |
| 25 | 21 | } |
| 26 | 22 | |
| 27 | 23 | public function get_taxonomies() { |
| 28 | 24 | return $this->http_request( 'GET', 'taxonomies' ); |