PluginProbe
Elementor Website Builder – more than just a page builder / 3.6.1
Elementor Website Builder – more than just a page builder v3.6.1
4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 4.1.0-beta1 4.1.0-dev1 4.0.7 All 451 releases
elementor / includes / template-library / data / endpoints / templates.php

templates.php in Elementor Website Builder – more than just a page builder 3.6.1, at includes/template-library/data/endpoints/templates.php

24 lines 540 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace Elementor\Includes\TemplateLibrary\Data\Endpoints;
3
4 use Elementor\Data\V2\Base\Endpoint;
5 use Elementor\Plugin;
6
7 if ( ! defined( 'ABSPATH' ) ) {
8 exit; // Exit if accessed directly.
9 }
10
11 class Templates extends Endpoint {
12 public function get_name() {
13 return 'templates';
14 }
15
16 public function get_format() {
17 return 'template-library/templates';
18 }
19
20 public function get_items( $request ) {
21 return Plugin::$instance->templates_manager->get_library_data( [ 'filter_sources' => [ $request->get_param( 'source' ) ] ] );
22 }
23 }
24