Current Path : /storage/v11800/testsharplanding/public_html/wp-content/plugins/elementskit-lite/modules/layout-manager/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/testsharplanding/public_html/wp-content/plugins/elementskit-lite/modules/layout-manager/layout-list-api.php |
<?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 ) );
}
}