Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
File Manager
/
wp-content
/
plugins
/
elementskit-lite
/
modules
/
layout-manager
:
layout-list-api.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace ElementsKit_Lite\Modules\Layout_Manager; defined( 'ABSPATH' ) || exit; class Layout_List_Api extends \ElementsKit_Lite\Core\Handler_Api { public function config() { $this->prefix = 'layout-manager-api'; } public function get_layout_list() { $param = array_merge( \ElementsKit_Lite::license_data(), $_GET, array( 'action' => 'get_layout_list' ) ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Passed in elementor's hook for get url which has processed the nonce already. $response = wp_remote_get( \ElementsKit_Lite::api_url() . 'layout-manager-api/?' . http_build_query( $param ), array( 'timeout' => 30, 'headers' => array( 'Content-Type' => 'application/json', ), ) ); return json_decode( wp_remote_retrieve_body( $response ) ); } }