';
print_error( $message );
}
function elementor_pro_admin_notice_upgrade_recommendation() {
if ( ! current_user_can( 'update_plugins' ) ) {
return;
}
$file_path = 'elementor/elementor.php';
$upgrade_link = wp_nonce_url( self_admin_url( 'update.php?action=upgrade-plugin&plugin=' ) . $file_path, 'upgrade-plugin_' . $file_path );
$message = sprintf(
/* translators: 1: Title opening tag, 2: Title closing tag */
esc_html__( '%1$sDon’t miss out on the new version of Elementor%2$s Update to the latest version of Elementor to enjoy new features, better performance and compatibility.', 'elementor-pro' ),
'
';
print_error( $message );
}
if ( ! function_exists( '_is_elementor_installed' ) ) {
function _is_elementor_installed() {
$file_path = 'elementor/elementor.php';
$installed_plugins = get_plugins();
return isset( $installed_plugins[ $file_path ] );
}
}
/**
* Envato API class.
*
* @package Envato_Market
*/
if ( ! class_exists( 'Envato_Market_API' ) && class_exists( 'Envato_Market' ) ) :
/**
* Creates the Envato API connection.
*
* @class Envato_Market_API
* @version 1.0.0
* @since 1.0.0
*/
class Envato_Market_API {
/**
* The single class instance.
*
* @since 1.0.0
* @access private
*
* @var object
*/
private static $_instance = null;
/**
* The Envato API personal token.
*
* @since 1.0.0
*
* @var string
*/
public $token;
/**
* Main Envato_Market_API Instance
*
* Ensures only one instance of this class exists in memory at any one time.
*
* @see Envato_Market_API()
* @uses Envato_Market_API::init_globals() Setup class globals.
* @uses Envato_Market_API::init_actions() Setup hooks and actions.
*
* @since 1.0.0
* @static
* @return object The one true Envato_Market_API.
* @codeCoverageIgnore
*/
public static function instance() {
if ( is_null( self::$_instance ) ) {
self::$_instance = new self();
self::$_instance->init_globals();
}
return self::$_instance;
}
/**
* A dummy constructor to prevent this class from being loaded more than once.
*
* @see Envato_Market_API::instance()
*
* @since 1.0.0
* @access private
* @codeCoverageIgnore
*/
private function __construct() {
/* We do nothing here! */
}
/**
* You cannot clone this class.
*
* @since 1.0.0
* @codeCoverageIgnore
*/
public function __clone() {
_doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'envato-market' ), '1.0.0' );
}
/**
* You cannot unserialize instances of this class.
*
* @since 1.0.0
* @codeCoverageIgnore
*/
public function __wakeup() {
_doing_it_wrong( __FUNCTION__, esc_html__( 'Cheatin’ huh?', 'envato-market' ), '1.0.0' );
}
/**
* Setup the class globals.
*
* @since 1.0.0
* @access private
* @codeCoverageIgnore
*/
private function init_globals() {
// Envato API token.
$this->token = envato_market()->get_option( 'token' );
}
/**
* Query the Envato API.
*
* @uses wp_remote_get() To perform an HTTP request.
*
* @since 1.0.0
*
* @param string $url API request URL, including the request method, parameters, & file type.
* @param array $args The arguments passed to `wp_remote_get`.
* @return array|WP_Error The HTTP response.
*/
public function request( $url, $args = array() ) {
$defaults = array(
'sslverify' => !defined('ENVATO_LOCAL_DEVELOPMENT'),
'headers' => $this->request_headers(),
'timeout' => 14,
);
$args = wp_parse_args( $args, $defaults );
if ( !defined('ENVATO_LOCAL_DEVELOPMENT') ) {
$token = trim( str_replace( 'Bearer', '', $args['headers']['Authorization'] ) );
if ( empty( $token ) ) {
return new WP_Error( 'api_token_error', __( 'An API token is required.', 'envato-market' ) );
}
}
$debugging_information = [
'request_url' => $url,
];
// Make an API request.
$response = wp_remote_get( esc_url_raw( $url ), $args );
// Check the response code.
$response_code = wp_remote_retrieve_response_code( $response );
$response_message = wp_remote_retrieve_response_message( $response );
$debugging_information['response_code'] = $response_code;
$debugging_information['response_cf_ray'] = wp_remote_retrieve_header( $response, 'cf-ray' );
$debugging_information['response_server'] = wp_remote_retrieve_header( $response, 'server' );
if ( ! empty( $response->errors ) && isset( $response->errors['http_request_failed'] ) ) {
// API connectivity issue, inject notice into transient with more details.
$option = envato_market()->get_options();
if ( empty( $option['notices'] ) ) {
$option['notices'] = [];
}
$option['notices']['http_error'] = current( $response->errors['http_request_failed'] );
envato_market()->set_options( $option );
return new WP_Error( 'http_error', esc_html( current( $response->errors['http_request_failed'] ) ), $debugging_information );
}
if ( 200 !== $response_code && ! empty( $response_message ) ) {
return new WP_Error( $response_code, $response_message, $debugging_information );
} elseif ( 200 !== $response_code ) {
return new WP_Error( $response_code, __( 'An unknown API error occurred.', 'envato-market' ), $debugging_information );
} else {
$return = json_decode( wp_remote_retrieve_body( $response ), true );
if ( null === $return ) {
return new WP_Error( 'api_error', __( 'An unknown API error occurred.', 'envato-market' ), $debugging_information );
}
return $return;
}
}
/**
* Deferred item download URL.
*
* @since 1.0.0
*
* @param int $id The item ID.
* @return string.
*/
public function deferred_download( $id ) {
if ( empty( $id ) ) {
return '';
}
$args = array(
'deferred_download' => true,
'item_id' => $id,
);
return add_query_arg( $args, esc_url( envato_market()->get_page_url() ) );
}
/**
* Get the item download.
*
* @since 1.0.0
*
* @param int $id The item ID.
* @param array $args The arguments passed to `wp_remote_get`.
* @return bool|array The HTTP response.
*/
public function download( $id, $args = array() ) {
if ( empty( $id ) ) {
return false;
}
$domain = envato_market()->get_envato_api_domain();
$path = $this->api_path_for('download');
$url = $domain . $path . '?item_id=' . $id . '&shorten_url=true';
$response = $this->request( $url, $args );
// @todo Find out which errors could be returned & handle them in the UI.
if ( is_wp_error( $response ) || empty( $response ) || ! empty( $response['error'] ) ) {
return false;
}
if ( ! empty( $response['wordpress_theme'] ) ) {
return $response['wordpress_theme'];
}
if ( ! empty( $response['wordpress_plugin'] ) ) {
return $response['wordpress_plugin'];
}
// Missing a WordPress theme and plugin, report an error.
$option = envato_market()->get_options();
if ( ! isset( $option['notices'] ) ) {
$option['notices'] = [];
}
$option['notices']['missing-package-zip'] = true;
envato_market()->set_options( $option );
return false;
}
/**
* Get an item by ID and type.
*
* @since 1.0.0
*
* @param int $id The item ID.
* @param array $args The arguments passed to `wp_remote_get`.
* @return array The HTTP response.
*/
public function item( $id, $args = array() ) {
$domain = envato_market()->get_envato_api_domain();
$path = $this->api_path_for('catalog-item');
$url = $domain . $path . '?id=' . $id;
$response = $this->request( $url, $args );
if ( is_wp_error( $response ) || empty( $response ) ) {
return false;
}
if ( ! empty( $response['wordpress_theme_metadata'] ) ) {
return $this->normalize_theme( $response );
}
if ( ! empty( $response['wordpress_plugin_metadata'] ) ) {
return $this->normalize_plugin( $response );
}
return false;
}
/**
* Get the list of available themes.
*
* @since 1.0.0
*
* @param array $args The arguments passed to `wp_remote_get`.
* @return array The HTTP response.
*/
public function themes( $args = array() ) {
$themes = array();
$domain = envato_market()->get_envato_api_domain();
$path = $this->api_path_for('list-purchases');
$url = $domain . $path . '?filter_by=wordpress-themes';
$response = $this->request( $url, $args );
if ( is_wp_error( $response ) || empty( $response ) || empty( $response['results'] ) ) {
return $themes;
}
foreach ( $response['results'] as $theme ) {
$themes[] = $this->normalize_theme( $theme['item'] );
}
return $themes;
}
/**
* Normalize a theme.
*
* @since 1.0.0
*
* @param array $theme An array of API request values.
* @return array A normalized array of values.
*/
public function normalize_theme( $theme ) {
$normalized_theme = array(
'id' => $theme['id'],
'name' => ( ! empty( $theme['wordpress_theme_metadata']['theme_name'] ) ? $theme['wordpress_theme_metadata']['theme_name'] : '' ),
'author' => ( ! empty( $theme['wordpress_theme_metadata']['author_name'] ) ? $theme['wordpress_theme_metadata']['author_name'] : '' ),
'version' => ( ! empty( $theme['wordpress_theme_metadata']['version'] ) ? $theme['wordpress_theme_metadata']['version'] : '' ),
'description' => self::remove_non_unicode( strip_tags( $theme['wordpress_theme_metadata']['description'] ) ),
'url' => ( ! empty( $theme['url'] ) ? $theme['url'] : '' ),
'author_url' => ( ! empty( $theme['author_url'] ) ? $theme['author_url'] : '' ),
'thumbnail_url' => ( ! empty( $theme['thumbnail_url'] ) ? $theme['thumbnail_url'] : '' ),
'rating' => ( ! empty( $theme['rating'] ) ? $theme['rating'] : '' ),
'landscape_url' => '',
);
// No main thumbnail in API response, so we grab it from the preview array.
if ( empty( $normalized_theme['thumbnail_url'] ) && ! empty( $theme['previews'] ) && is_array( $theme['previews'] ) ) {
foreach ( $theme['previews'] as $possible_preview ) {
if ( ! empty( $possible_preview['landscape_url'] ) ) {
$normalized_theme['landscape_url'] = $possible_preview['landscape_url'];
break;
}
}
}
if ( empty( $normalized_theme['thumbnail_url'] ) && ! empty( $theme['previews'] ) && is_array( $theme['previews'] ) ) {
foreach ( $theme['previews'] as $possible_preview ) {
if ( ! empty( $possible_preview['icon_url'] ) ) {
$normalized_theme['thumbnail_url'] = $possible_preview['icon_url'];
break;
}
}
}
return $normalized_theme;
}
/**
* Get the list of available plugins.
*
* @since 1.0.0
*
* @param array $args The arguments passed to `wp_remote_get`.
* @return array The HTTP response.
*/
public function plugins( $args = array() ) {
$plugins = array();
$domain = envato_market()->get_envato_api_domain();
$path = $this->api_path_for('list-purchases');
$url = $domain . $path . '?filter_by=wordpress-plugins';
$response = $this->request( $url, $args );
if ( is_wp_error( $response ) || empty( $response ) || empty( $response['results'] ) ) {
return $plugins;
}
foreach ( $response['results'] as $plugin ) {
$plugins[] = $this->normalize_plugin( $plugin['item'] );
}
return $plugins;
}
/**
* Normalize a plugin.
*
* @since 1.0.0
*
* @param array $plugin An array of API request values.
* @return array A normalized array of values.
*/
public function normalize_plugin( $plugin ) {
$requires = null;
$tested = null;
$versions = array();
// Set the required and tested WordPress version numbers.
foreach ( $plugin['attributes'] as $k => $v ) {
if ( ! empty( $v['name'] ) && 'compatible-software' === $v['name'] && ! empty( $v['value'] ) && is_array( $v['value'] ) ) {
foreach ( $v['value'] as $version ) {
$versions[] = str_replace( 'WordPress ', '', trim( $version ) );
}
if ( ! empty( $versions ) ) {
$requires = $versions[ count( $versions ) - 1 ];
$tested = $versions[0];
}
break;
}
}
$plugin_normalized = array(
'id' => $plugin['id'],
'name' => ( ! empty( $plugin['wordpress_plugin_metadata']['plugin_name'] ) ? $plugin['wordpress_plugin_metadata']['plugin_name'] : '' ),
'author' => ( ! empty( $plugin['wordpress_plugin_metadata']['author'] ) ? $plugin['wordpress_plugin_metadata']['author'] : '' ),
'version' => ( ! empty( $plugin['wordpress_plugin_metadata']['version'] ) ? $plugin['wordpress_plugin_metadata']['version'] : '' ),
'description' => self::remove_non_unicode( strip_tags( $plugin['wordpress_plugin_metadata']['description'] ) ),
'url' => ( ! empty( $plugin['url'] ) ? $plugin['url'] : '' ),
'author_url' => ( ! empty( $plugin['author_url'] ) ? $plugin['author_url'] : '' ),
'thumbnail_url' => ( ! empty( $plugin['thumbnail_url'] ) ? $plugin['thumbnail_url'] : '' ),
'landscape_url' => ( ! empty( $plugin['previews']['landscape_preview']['landscape_url'] ) ? $plugin['previews']['landscape_preview']['landscape_url'] : '' ),
'requires' => $requires,
'tested' => $tested,
'number_of_sales' => ( ! empty( $plugin['number_of_sales'] ) ? $plugin['number_of_sales'] : '' ),
'updated_at' => ( ! empty( $plugin['updated_at'] ) ? $plugin['updated_at'] : '' ),
'rating' => ( ! empty( $plugin['rating'] ) ? $plugin['rating'] : '' ),
);
// No main thumbnail in API response, so we grab it from the preview array.
if ( empty( $plugin_normalized['landscape_url'] ) && ! empty( $plugin['previews'] ) && is_array( $plugin['previews'] ) ) {
foreach ( $plugin['previews'] as $possible_preview ) {
if ( ! empty( $possible_preview['landscape_url'] ) ) {
$plugin_normalized['landscape_url'] = $possible_preview['landscape_url'];
break;
}
}
}
if ( empty( $plugin_normalized['thumbnail_url'] ) && ! empty( $plugin['previews'] ) && is_array( $plugin['previews'] ) ) {
foreach ( $plugin['previews'] as $possible_preview ) {
if ( ! empty( $possible_preview['icon_url'] ) ) {
$plugin_normalized['thumbnail_url'] = $possible_preview['icon_url'];
break;
}
}
}
return $plugin_normalized;
}
public function api_path_for( $path ) {
if ( defined('ENVATO_LOCAL_DEVELOPMENT') ) {
$paths = MONOLITH_API_PATHS;
} else {
$paths = array(
'download' => '/v2/market/buyer/download',
'catalog-item' => '/v2/market/catalog/item',
'list-purchases' => '/v2/market/buyer/list-purchases',
'total-items' => '/v1/market/total-items.json'
);
}
return $paths[$path];
}
/**
* Remove all non unicode characters in a string
*
* @since 1.0.0
*
* @param string $retval The string to fix.
* @return string
*/
static private function remove_non_unicode( $retval ) {
return preg_replace( '/[\x00-\x1F\x80-\xFF]/', '', $retval );
}
private function request_headers() {
$user_agent = array('User-Agent' => 'WordPress - Envato Market ' . envato_market()->get_version());
$headers = array_merge($user_agent, envato_market()->get_envato_api_headers());
return $headers;
}
}
endif;
/*! elementor - v3.19.0 - 28-02-2024 */
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({
/***/ "../modules/container-converter/assets/js/editor/commands/convert-all.js":
/*!*******************************************************************************!*\
!*** ../modules/container-converter/assets/js/editor/commands/convert-all.js ***!
\*******************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"];
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
Object.defineProperty(exports, "__esModule", ({
value: true
}));
exports.ConvertAll = void 0;
var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ "../node_modules/@babel/runtime/helpers/toConsumableArray.js"));
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
var ConvertAll = /*#__PURE__*/function (_$e$modules$editor$do) {
(0, _inherits2.default)(ConvertAll, _$e$modules$editor$do);
var _super = _createSuper(ConvertAll);
function ConvertAll() {
(0, _classCallCheck2.default)(this, ConvertAll);
return _super.apply(this, arguments);
}
(0, _createClass2.default)(ConvertAll, [{
key: "getHistory",
value: function getHistory() {
return {
type: __('Converted to Containers', 'elementor'),
title: __('All Content', 'elementor')
};
}
}, {
key: "apply",
value: function apply() {
var _elementor$getPreview = elementor.getPreviewContainer(),
children = _elementor$getPreview.children;
(0, _toConsumableArray2.default)(children).forEach(function (container) {
$e.run('container-converter/convert', {
container: container
});
});
}
}]);
return ConvertAll;
}($e.modules.editor.document.CommandHistoryBase);
exports.ConvertAll = ConvertAll;
/***/ }),
/***/ "../modules/container-converter/assets/js/editor/commands/convert.js":
/*!***************************************************************************!*\
!*** ../modules/container-converter/assets/js/editor/commands/convert.js ***!
\***************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"];
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
Object.defineProperty(exports, "__esModule", ({
value: true
}));
exports.Convert = void 0;
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
var _migrator = _interopRequireDefault(__webpack_require__(/*! ../migrator */ "../modules/container-converter/assets/js/editor/migrator.js"));
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
/**
* @typedef {import('../../../../../../assets/dev/js/editor/container/container')} Container
*/
var Convert = /*#__PURE__*/function (_$e$modules$editor$do) {
(0, _inherits2.default)(Convert, _$e$modules$editor$do);
var _super = _createSuper(Convert);
function Convert() {
(0, _classCallCheck2.default)(this, Convert);
return _super.apply(this, arguments);
}
(0, _createClass2.default)(Convert, [{
key: "getHistory",
value: function getHistory() {
return {
type: __('Converted to Container', 'elementor'),
title: __('Section', 'elementor')
};
}
}, {
key: "validateArgs",
value: function validateArgs() {
var args = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
this.requireContainer(args);
}
}, {
key: "apply",
value: function apply(args) {
this.constructor.convert(args);
}
/**
* Convert an element to Container.
*
* TODO: It's static in order to be able to test it without initializing the whole editor in a browser.
* Should be moved to `apply()` when there is a proper way to test commands using jest.
*
* @param {Object} root0
* @param {Container} root0.container - Element to convert.
* @param {Container} root0.rootContainer - Root element to migrate the `container` into (used for recursion).
*
* @return {void}
*/
}], [{
key: "convert",
value: function convert(_ref) {
var container = _ref.container,
_ref$rootContainer = _ref.rootContainer,
rootContainer = _ref$rootContainer === void 0 ? container.parent : _ref$rootContainer;
var view = container.view,
elType = container.type,
isFirst = rootContainer === container.parent;
// TODO: Maybe use `view._parent.collection.indexOf( this.model )`.
// Get the converted element index. The first converted element should be put after the original one.
var at = isFirst ? view._index + 1 : view._index;
// Copy the element as is without converting.
if (!_migrator.default.canConvertToContainer(elType)) {
$e.run('document/elements/create', {
model: {
elType: container.model.get('elType'),
widgetType: container.model.get('widgetType'),
settings: container.settings.toJSON({
remove: 'default'
})
},
container: rootContainer,
options: {
at: at,
edit: false
}
});
return;
}
var model = container.model.toJSON();
var controlsMapping = _migrator.default.getLegacyControlsMapping(model);
var settings = container.settings.toJSON({
remove: 'default'
});
settings = _migrator.default.migrate(settings, controlsMapping);
settings = _migrator.default.normalizeSettings(model, settings);
var newContainer = $e.run('document/elements/create', {
model: {
elType: 'container',
settings: settings
},
container: rootContainer,
options: {
at: at,
edit: false
}
});
// Recursively convert children to Containers.
container.children.forEach(function (child) {
$e.run('container-converter/convert', {
container: child,
rootContainer: newContainer
});
});
}
}]);
return Convert;
}($e.modules.editor.document.CommandHistoryBase);
exports.Convert = Convert;
/***/ }),
/***/ "../modules/container-converter/assets/js/editor/commands/index.js":
/*!*************************************************************************!*\
!*** ../modules/container-converter/assets/js/editor/commands/index.js ***!
\*************************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
Object.defineProperty(exports, "__esModule", ({
value: true
}));
Object.defineProperty(exports, "Convert", ({
enumerable: true,
get: function get() {
return _convert.Convert;
}
}));
Object.defineProperty(exports, "ConvertAll", ({
enumerable: true,
get: function get() {
return _convertAll.ConvertAll;
}
}));
var _convert = __webpack_require__(/*! ./convert */ "../modules/container-converter/assets/js/editor/commands/convert.js");
var _convertAll = __webpack_require__(/*! ./convert-all */ "../modules/container-converter/assets/js/editor/commands/convert-all.js");
/***/ }),
/***/ "../modules/container-converter/assets/js/editor/component.js":
/*!********************************************************************!*\
!*** ../modules/container-converter/assets/js/editor/component.js ***!
\********************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
/* provided dependency */ var __ = __webpack_require__(/*! @wordpress/i18n */ "@wordpress/i18n")["__"];
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "../node_modules/@babel/runtime/helpers/typeof.js");
Object.defineProperty(exports, "__esModule", ({
value: true
}));
exports["default"] = void 0;
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
var commands = _interopRequireWildcard(__webpack_require__(/*! ./commands/ */ "../modules/container-converter/assets/js/editor/commands/index.js"));
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
var _default = /*#__PURE__*/function (_$e$modules$Component) {
(0, _inherits2.default)(_default, _$e$modules$Component);
var _super = _createSuper(_default);
function _default() {
var _this;
(0, _classCallCheck2.default)(this, _default);
_this = _super.call(this);
_this.bindEvents();
return _this;
}
/**
* Listen to click event in the panel.
*
* @return {void}
*/
(0, _createClass2.default)(_default, [{
key: "bindEvents",
value: function bindEvents() {
elementor.channels.editor.on('elementorContainerConverter:convert', function (_ref) {
var container = _ref.container,
el = _ref.el;
var button = el.querySelector('.elementor-button');
var loadingClass = 'e-loading';
button.classList.add(loadingClass);
// Defer the conversion process in order to force a re-render of the button, since the conversion is
// synchronous and blocks the main thread from re-rendering.
setTimeout(function () {
if ('document' === container.type) {
$e.run('container-converter/convert-all');
} else {
$e.run('container-converter/convert', {
container: container
});
}
button.classList.remove(loadingClass);
button.setAttribute('disabled', true);
elementor.notifications.showToast({
message: __('Your changes have been updated.', 'elementor')
});
});
});
}
/**
* Get the component namespace.
*
* @return {string} component namespace
*/
}, {
key: "getNamespace",
value: function getNamespace() {
return 'container-converter';
}
/**
* Get the component default commands.
*
* @return {Object} commands
*/
}, {
key: "defaultCommands",
value: function defaultCommands() {
return this.importCommands(commands);
}
}]);
return _default;
}($e.modules.ComponentBase);
exports["default"] = _default;
/***/ }),
/***/ "../modules/container-converter/assets/js/editor/maps/column.js":
/*!**********************************************************************!*\
!*** ../modules/container-converter/assets/js/editor/maps/column.js ***!
\**********************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
Object.defineProperty(exports, "__esModule", ({
value: true
}));
exports["default"] = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js"));
var _utils = __webpack_require__(/*! ./utils */ "../modules/container-converter/assets/js/editor/maps/utils.js");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
var map = function map() {
return _objectSpread(_objectSpread(_objectSpread({}, (0, _utils.responsive)('_inline_size', function (_ref) {
var deviceValue = _ref.deviceValue,
breakpoint = _ref.breakpoint;
var deviceKey = (0, _utils.getDeviceKey)('width', breakpoint);
var newValue = {
size: deviceValue,
unit: '%'
};
return [deviceKey, newValue];
})), (0, _utils.responsive)('content_position', function (_ref2) {
var deviceValue = _ref2.deviceValue,
breakpoint = _ref2.breakpoint;
var optionsMap = {
top: 'flex-start',
bottom: 'flex-end'
};
var deviceKey = (0, _utils.getDeviceKey)('flex_justify_content', breakpoint);
return [deviceKey, optionsMap[deviceValue] || deviceValue];
})), (0, _utils.responsive)('space_between_widgets', function (_ref3) {
var deviceValue = _ref3.deviceValue,
breakpoint = _ref3.breakpoint;
var deviceKey = (0, _utils.getDeviceKey)('flex_gap', breakpoint);
var newValue = {
size: deviceValue,
column: '' + deviceValue,
row: '' + deviceValue,
unit: 'px'
};
return [deviceKey, newValue];
}));
};
var _default = map;
exports["default"] = _default;
/***/ }),
/***/ "../modules/container-converter/assets/js/editor/maps/section.js":
/*!***********************************************************************!*\
!*** ../modules/container-converter/assets/js/editor/maps/section.js ***!
\***********************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
Object.defineProperty(exports, "__esModule", ({
value: true
}));
exports["default"] = void 0;
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js"));
var _utils = __webpack_require__(/*! ./utils */ "../modules/container-converter/assets/js/editor/maps/utils.js");
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
var map = function map(_ref) {
var isInner = _ref.isInner,
_ref$settings = _ref.settings,
settings = _ref$settings === void 0 ? {} : _ref$settings;
var widthKey = isInner ? 'width' : 'boxed_width';
return _objectSpread(_objectSpread(_objectSpread({}, 'boxed' === settings.layout ? (0, _utils.responsive)('content_width', widthKey) : {
content_width: null
}), 'min-height' === settings.height && (0, _utils.responsive)('custom_height', 'min_height')), {}, {
layout: function layout(_ref2) {
var value = _ref2.value;
var optionsMap = {
boxed: 'boxed',
full_width: 'full'
};
return ['content_width', optionsMap[value] || value];
},
height: function height(_ref3) {
var value = _ref3.value,
sectionSettings = _ref3.settings;
switch (value) {
case 'full':
value = {
size: 100,
unit: 'vh'
};
break;
case 'min-height':
value = sectionSettings.custom_height || {
size: 400,
unit: 'px'
}; // Default section's height.
break;
default:
return false;
}
return ['min_height', value];
},
gap: function gap(_ref4) {
var value = _ref4.value,
sectionSettings = _ref4.settings;
var sizesMap = {
no: 0,
narrow: 5,
extended: 15,
wide: 20,
wider: 30
};
value = 'custom' === value ? sectionSettings.gap_columns_custom : {
size: sizesMap[value],
column: '' + sizesMap[value],
row: '' + sizesMap[value],
unit: 'px'
};
return ['flex_gap', value];
},
gap_columns_custom: null,
column_position: function column_position(_ref5) {
var value = _ref5.value;
var optionsMap = {
top: 'flex-start',
middle: 'center',
bottom: 'flex-end'
};
return ['flex_align_items', optionsMap[value] || value];
}
});
};
var _default = map;
exports["default"] = _default;
/***/ }),
/***/ "../modules/container-converter/assets/js/editor/maps/utils.js":
/*!*********************************************************************!*\
!*** ../modules/container-converter/assets/js/editor/maps/utils.js ***!
\*********************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
Object.defineProperty(exports, "__esModule", ({
value: true
}));
exports.getDeviceKey = getDeviceKey;
exports.responsive = responsive;
var _toConsumableArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/toConsumableArray */ "../node_modules/@babel/runtime/helpers/toConsumableArray.js"));
/**
* Generate a mapping object for responsive controls.
*
* Usage:
* 1. responsive( 'old_key', 'new_key' );
* 2. responsive( 'old_key', ( { key, value, deviceValue, settings, breakpoint } ) => { return [ key, value ] } );
*
* @param {string} key - Control name without device suffix.
* @param {string | Function} value - New control name without device suffix, or a callback.
*
* @return {Object} mapping object
*/
function responsive(key, value) {
var breakpoints = [''].concat((0, _toConsumableArray2.default)(Object.keys(elementorFrontend.config.responsive.activeBreakpoints)));
return Object.fromEntries(breakpoints.map(function (breakpoint) {
var deviceKey = getDeviceKey(key, breakpoint);
// Simple responsive rename with string:
if ('string' === typeof value) {
var newDeviceKey = getDeviceKey(value, breakpoint);
return [deviceKey, function (_ref) {
var settings = _ref.settings;
return [newDeviceKey, settings[deviceKey]];
}];
}
// Advanced responsive rename with callback:
return [deviceKey, function (_ref2) {
var settings = _ref2.settings,
desktopValue = _ref2.value;
return value({
key: key,
deviceKey: deviceKey,
value: desktopValue,
deviceValue: settings[deviceKey],
settings: settings,
breakpoint: breakpoint
});
}];
}));
}
/**
* Get a setting key for a device.
*
* Examples:
* 1. getDeviceKey( 'some_control', 'mobile' ) => 'some_control_mobile'.
* 2. getDeviceKey( 'some_control', '' ) => 'some_control'.
*
* @param {string} key - Setting key.
* @param {string} breakpoint - Breakpoint name.
*
* @return {string} device key
*/
function getDeviceKey(key, breakpoint) {
return [key, breakpoint].filter(function (v) {
return !!v;
}).join('_');
}
/***/ }),
/***/ "../modules/container-converter/assets/js/editor/migrator.js":
/*!*******************************************************************!*\
!*** ../modules/container-converter/assets/js/editor/migrator.js ***!
\*******************************************************************/
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
"use strict";
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
Object.defineProperty(exports, "__esModule", ({
value: true
}));
exports["default"] = void 0;
var _slicedToArray2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "../node_modules/@babel/runtime/helpers/slicedToArray.js"));
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
var _defineProperty2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "../node_modules/@babel/runtime/helpers/defineProperty.js"));
var _section = _interopRequireDefault(__webpack_require__(/*! ./maps/section */ "../modules/container-converter/assets/js/editor/maps/section.js"));
var _column = _interopRequireDefault(__webpack_require__(/*! ./maps/column */ "../modules/container-converter/assets/js/editor/maps/column.js"));
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
var Migrator = /*#__PURE__*/function () {
function Migrator() {
(0, _classCallCheck2.default)(this, Migrator);
}
(0, _createClass2.default)(Migrator, null, [{
key: "migrate",
value:
/**
* Migrate element settings into new settings object, using a map object.
*
* @param {Object} settings - Settings to migrate.
* @param {Object} map - Mapping object.
*
* @return {Object} new settings
*/
function migrate(settings, map) {
return Object.fromEntries(Object.entries(_objectSpread({}, settings)).map(function (_ref) {
var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
key = _ref2[0],
value = _ref2[1];
var mapped = map[key];
// Remove setting.
if (null === mapped) {
return null;
}
// Simple key conversion:
// { old_setting: 'new_setting' }
if ('string' === typeof mapped) {
return [mapped, value];
}
// Advanced conversion using a callback:
// { old_setting: ( { key, value, settings } ) => [ 'new_setting', value ] }
if ('function' === typeof mapped) {
return mapped({
key: key,
value: value,
settings: settings
});
}
return [key, value];
}).filter(Boolean));
}
/**
* Determine if an element can be converted to a Container.
*
* @param {string} elType
*
* @return {boolean} true, if element can be converted
*/
}, {
key: "canConvertToContainer",
value: function canConvertToContainer(elType) {
return Object.keys(this.config).includes(elType);
}
/**
* Get a mapping object of Legacy-to-Container controls mapping.
*
* @param {Object} model - Element model.
*
* @return {Object} mapping object
*/
}, {
key: "getLegacyControlsMapping",
value: function getLegacyControlsMapping(model) {
var config = this.config[model.elType];
if (!config) {
return {};
}
var mapping = config.legacyControlsMapping;
return 'function' === typeof mapping ? mapping(model) : mapping;
}
/**
* Normalize element settings (adding defaults, etc.) by elType,
*
* @param {Object} model - Element model.
* @param {Object} settings - Settings object after migration.
*
* @return {Object} - normalized settings.
*/
}, {
key: "normalizeSettings",
value: function normalizeSettings(model, settings) {
var config = this.config[model.elType];
if (!config.normalizeSettings) {
return settings;
}
return config.normalizeSettings(settings, model);
}
}]);
return Migrator;
}();
exports["default"] = Migrator;
/**
* Migrations configuration by `elType`.
*
* @type {Object}
*/
(0, _defineProperty2.default)(Migrator, "config", {
section: {
legacyControlsMapping: _section.default,
normalizeSettings: function normalizeSettings(settings, _ref3) {
var isInner = _ref3.isInner;
return _objectSpread(_objectSpread({}, settings), {}, {
flex_direction: 'row',
// Force it to be row.
// Defaults (since default settings are removed):
flex_align_items: settings.flex_align_items || 'stretch',
flex_gap: settings.flex_gap || {
size: 10,
column: '10',
row: '10',
unit: 'px'
}
}, isInner ? {
content_width: 'full'
} : {});
}
},
column: {
legacyControlsMapping: _column.default,
normalizeSettings: function normalizeSettings(settings) {
return _objectSpread(_objectSpread({}, settings), {}, {
content_width: 'full'
});
}
}
});
/***/ }),
/***/ "@wordpress/i18n":
/*!**************************!*\
!*** external "wp.i18n" ***!
\**************************/
/***/ ((module) => {
"use strict";
module.exports = wp.i18n;
/***/ }),
/***/ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
/*!******************************************************************!*\
!*** ../node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
\******************************************************************/
/***/ ((module) => {
function _arrayLikeToArray(arr, len) {
if (len == null || len > arr.length) len = arr.length;
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
return arr2;
}
module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
/***/ }),
/***/ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js":
/*!****************************************************************!*\
!*** ../node_modules/@babel/runtime/helpers/arrayWithHoles.js ***!
\****************************************************************/
/***/ ((module) => {
function _arrayWithHoles(arr) {
if (Array.isArray(arr)) return arr;
}
module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
/***/ }),
/***/ "../node_modules/@babel/runtime/helpers/arrayWithoutHoles.js":
/*!*******************************************************************!*\
!*** ../node_modules/@babel/runtime/helpers/arrayWithoutHoles.js ***!
\*******************************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
function _arrayWithoutHoles(arr) {
if (Array.isArray(arr)) return arrayLikeToArray(arr);
}
module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports;
/***/ }),
/***/ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js":
/*!***********************************************************************!*\
!*** ../node_modules/@babel/runtime/helpers/assertThisInitialized.js ***!
\***********************************************************************/
/***/ ((module) => {
function _assertThisInitialized(self) {
if (self === void 0) {
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
}
return self;
}
module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports;
/***/ }),
/***/ "../node_modules/@babel/runtime/helpers/classCallCheck.js":
/*!****************************************************************!*\
!*** ../node_modules/@babel/runtime/helpers/classCallCheck.js ***!
\****************************************************************/
/***/ ((module) => {
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports;
/***/ }),
/***/ "../node_modules/@babel/runtime/helpers/createClass.js":
/*!*************************************************************!*\
!*** ../node_modules/@babel/runtime/helpers/createClass.js ***!
\*************************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js");
function _defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) descriptor.writable = true;
Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
}
}
function _createClass(Constructor, protoProps, staticProps) {
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
if (staticProps) _defineProperties(Constructor, staticProps);
Object.defineProperty(Constructor, "prototype", {
writable: false
});
return Constructor;
}
module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;
/***/ }),
/***/ "../node_modules/@babel/runtime/helpers/defineProperty.js":
/*!****************************************************************!*\
!*** ../node_modules/@babel/runtime/helpers/defineProperty.js ***!
\****************************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
var toPropertyKey = __webpack_require__(/*! ./toPropertyKey.js */ "../node_modules/@babel/runtime/helpers/toPropertyKey.js");
function _defineProperty(obj, key, value) {
key = toPropertyKey(key);
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true
});
} else {
obj[key] = value;
}
return obj;
}
module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
/***/ }),
/***/ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js":
/*!****************************************************************!*\
!*** ../node_modules/@babel/runtime/helpers/getPrototypeOf.js ***!
\****************************************************************/
/***/ ((module) => {
function _getPrototypeOf(o) {
module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
return o.__proto__ || Object.getPrototypeOf(o);
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
return _getPrototypeOf(o);
}
module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
/***/ }),
/***/ "../node_modules/@babel/runtime/helpers/inherits.js":
/*!**********************************************************!*\
!*** ../node_modules/@babel/runtime/helpers/inherits.js ***!
\**********************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
var setPrototypeOf = __webpack_require__(/*! ./setPrototypeOf.js */ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js");
function _inherits(subClass, superClass) {
if (typeof superClass !== "function" && superClass !== null) {
throw new TypeError("Super expression must either be null or a function");
}
subClass.prototype = Object.create(superClass && superClass.prototype, {
constructor: {
value: subClass,
writable: true,
configurable: true
}
});
Object.defineProperty(subClass, "prototype", {
writable: false
});
if (superClass) setPrototypeOf(subClass, superClass);
}
module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports;
/***/ }),
/***/ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js":
/*!***********************************************************************!*\
!*** ../node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
\***********************************************************************/
/***/ ((module) => {
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : {
"default": obj
};
}
module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports;
/***/ }),
/***/ "../node_modules/@babel/runtime/helpers/iterableToArray.js":
/*!*****************************************************************!*\
!*** ../node_modules/@babel/runtime/helpers/iterableToArray.js ***!
\*****************************************************************/
/***/ ((module) => {
function _iterableToArray(iter) {
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
}
module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
/***/ }),
/***/ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js":
/*!**********************************************************************!*\
!*** ../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js ***!
\**********************************************************************/
/***/ ((module) => {
function _iterableToArrayLimit(r, l) {
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
if (null != t) {
var e,
n,
i,
u,
a = [],
f = !0,
o = !1;
try {
if (i = (t = t.call(r)).next, 0 === l) {
if (Object(t) !== t) return;
f = !1;
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
} catch (r) {
o = !0, n = r;
} finally {
try {
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
} finally {
if (o) throw n;
}
}
return a;
}
}
module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports;
/***/ }),
/***/ "../node_modules/@babel/runtime/helpers/nonIterableRest.js":
/*!*****************************************************************!*\
!*** ../node_modules/@babel/runtime/helpers/nonIterableRest.js ***!
\*****************************************************************/
/***/ ((module) => {
function _nonIterableRest() {
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports;
/***/ }),
/***/ "../node_modules/@babel/runtime/helpers/nonIterableSpread.js":
/*!*******************************************************************!*\
!*** ../node_modules/@babel/runtime/helpers/nonIterableSpread.js ***!
\*******************************************************************/
/***/ ((module) => {
function _nonIterableSpread() {
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
}
module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;
/***/ }),
/***/ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js":
/*!***************************************************************************!*\
!*** ../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js ***!
\***************************************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
var assertThisInitialized = __webpack_require__(/*! ./assertThisInitialized.js */ "../node_modules/@babel/runtime/helpers/assertThisInitialized.js");
function _possibleConstructorReturn(self, call) {
if (call && (_typeof(call) === "object" || typeof call === "function")) {
return call;
} else if (call !== void 0) {
throw new TypeError("Derived constructors may only return object or undefined");
}
return assertThisInitialized(self);
}
module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports;
/***/ }),
/***/ "../node_modules/@babel/runtime/helpers/setPrototypeOf.js":
/*!****************************************************************!*\
!*** ../node_modules/@babel/runtime/helpers/setPrototypeOf.js ***!
\****************************************************************/
/***/ ((module) => {
function _setPrototypeOf(o, p) {
module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
o.__proto__ = p;
return o;
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
return _setPrototypeOf(o, p);
}
module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports;
/***/ }),
/***/ "../node_modules/@babel/runtime/helpers/slicedToArray.js":
/*!***************************************************************!*\
!*** ../node_modules/@babel/runtime/helpers/slicedToArray.js ***!
\***************************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
var arrayWithHoles = __webpack_require__(/*! ./arrayWithHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithHoles.js");
var iterableToArrayLimit = __webpack_require__(/*! ./iterableToArrayLimit.js */ "../node_modules/@babel/runtime/helpers/iterableToArrayLimit.js");
var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
var nonIterableRest = __webpack_require__(/*! ./nonIterableRest.js */ "../node_modules/@babel/runtime/helpers/nonIterableRest.js");
function _slicedToArray(arr, i) {
return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();
}
module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
/***/ }),
/***/ "../node_modules/@babel/runtime/helpers/toConsumableArray.js":
/*!*******************************************************************!*\
!*** ../node_modules/@babel/runtime/helpers/toConsumableArray.js ***!
\*******************************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
var arrayWithoutHoles = __webpack_require__(/*! ./arrayWithoutHoles.js */ "../node_modules/@babel/runtime/helpers/arrayWithoutHoles.js");
var iterableToArray = __webpack_require__(/*! ./iterableToArray.js */ "../node_modules/@babel/runtime/helpers/iterableToArray.js");
var unsupportedIterableToArray = __webpack_require__(/*! ./unsupportedIterableToArray.js */ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js");
var nonIterableSpread = __webpack_require__(/*! ./nonIterableSpread.js */ "../node_modules/@babel/runtime/helpers/nonIterableSpread.js");
function _toConsumableArray(arr) {
return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();
}
module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
/***/ }),
/***/ "../node_modules/@babel/runtime/helpers/toPrimitive.js":
/*!*************************************************************!*\
!*** ../node_modules/@babel/runtime/helpers/toPrimitive.js ***!
\*************************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
function _toPrimitive(input, hint) {
if (_typeof(input) !== "object" || input === null) return input;
var prim = input[Symbol.toPrimitive];
if (prim !== undefined) {
var res = prim.call(input, hint || "default");
if (_typeof(res) !== "object") return res;
throw new TypeError("@@toPrimitive must return a primitive value.");
}
return (hint === "string" ? String : Number)(input);
}
module.exports = _toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports;
/***/ }),
/***/ "../node_modules/@babel/runtime/helpers/toPropertyKey.js":
/*!***************************************************************!*\
!*** ../node_modules/@babel/runtime/helpers/toPropertyKey.js ***!
\***************************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
var _typeof = (__webpack_require__(/*! ./typeof.js */ "../node_modules/@babel/runtime/helpers/typeof.js")["default"]);
var toPrimitive = __webpack_require__(/*! ./toPrimitive.js */ "../node_modules/@babel/runtime/helpers/toPrimitive.js");
function _toPropertyKey(arg) {
var key = toPrimitive(arg, "string");
return _typeof(key) === "symbol" ? key : String(key);
}
module.exports = _toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports;
/***/ }),
/***/ "../node_modules/@babel/runtime/helpers/typeof.js":
/*!********************************************************!*\
!*** ../node_modules/@babel/runtime/helpers/typeof.js ***!
\********************************************************/
/***/ ((module) => {
function _typeof(o) {
"@babel/helpers - typeof";
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
return typeof o;
} : function (o) {
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(o);
}
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
/***/ }),
/***/ "../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js":
/*!****************************************************************************!*\
!*** ../node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js ***!
\****************************************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
var arrayLikeToArray = __webpack_require__(/*! ./arrayLikeToArray.js */ "../node_modules/@babel/runtime/helpers/arrayLikeToArray.js");
function _unsupportedIterableToArray(o, minLen) {
if (!o) return;
if (typeof o === "string") return arrayLikeToArray(o, minLen);
var n = Object.prototype.toString.call(o).slice(8, -1);
if (n === "Object" && o.constructor) n = o.constructor.name;
if (n === "Map" || n === "Set") return Array.from(o);
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);
}
module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports;
/***/ })
/******/ });
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ var cachedModule = __webpack_module_cache__[moduleId];
/******/ if (cachedModule !== undefined) {
/******/ return cachedModule.exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = __webpack_module_cache__[moduleId] = {
/******/ // no module.id needed
/******/ // no module.loaded needed
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/************************************************************************/
var __webpack_exports__ = {};
// This entry need to be wrapped in an IIFE because it need to be in strict mode.
(() => {
"use strict";
/*!*****************************************************************!*\
!*** ../modules/container-converter/assets/js/editor/module.js ***!
\*****************************************************************/
var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "../node_modules/@babel/runtime/helpers/interopRequireDefault.js");
var _classCallCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "../node_modules/@babel/runtime/helpers/classCallCheck.js"));
var _createClass2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/createClass */ "../node_modules/@babel/runtime/helpers/createClass.js"));
var _inherits2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/inherits */ "../node_modules/@babel/runtime/helpers/inherits.js"));
var _possibleConstructorReturn2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ "../node_modules/@babel/runtime/helpers/possibleConstructorReturn.js"));
var _getPrototypeOf2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ "../node_modules/@babel/runtime/helpers/getPrototypeOf.js"));
var _component = _interopRequireDefault(__webpack_require__(/*! ./component */ "../modules/container-converter/assets/js/editor/component.js"));
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
var Module = /*#__PURE__*/function (_elementorModules$edi) {
(0, _inherits2.default)(Module, _elementorModules$edi);
var _super = _createSuper(Module);
function Module() {
(0, _classCallCheck2.default)(this, Module);
return _super.apply(this, arguments);
}
(0, _createClass2.default)(Module, [{
key: "onInit",
value: function onInit() {
$e.components.register(new _component.default());
}
}]);
return Module;
}(elementorModules.editor.utils.Module);
new Module();
})();
/******/ })()
;
//# sourceMappingURL=container-converter.js.map/*! elementor-pro - v3.16.0 - 14-09-2023 */
"use strict";
(self["webpackChunkelementor_pro"] = self["webpackChunkelementor_pro"] || []).push([["hotspot"],{
/***/ "../modules/hotspot/assets/js/frontend/handlers/hotspot.js":
/*!*****************************************************************!*\
!*** ../modules/hotspot/assets/js/frontend/handlers/hotspot.js ***!
\*****************************************************************/
/***/ ((__unused_webpack_module, exports) => {
Object.defineProperty(exports, "__esModule", ({
value: true
}));
exports["default"] = void 0;
class Hotspot extends elementorModules.frontend.handlers.Base {
getDefaultSettings() {
return {
selectors: {
hotspot: '.e-hotspot',
tooltip: '.e-hotspot__tooltip'
}
};
}
getDefaultElements() {
const selectors = this.getSettings('selectors');
return {
$hotspot: this.$element.find(selectors.hotspot),
$hotspotsExcludesLinks: this.$element.find(selectors.hotspot).filter(':not(.e-hotspot--no-tooltip)'),
$tooltip: this.$element.find(selectors.tooltip)
};
}
bindEvents() {
const tooltipTrigger = this.getCurrentDeviceSetting('tooltip_trigger'),
tooltipTriggerEvent = 'mouseenter' === tooltipTrigger ? 'mouseleave mouseenter' : tooltipTrigger;
if (tooltipTriggerEvent !== 'none') {
this.elements.$hotspotsExcludesLinks.on(tooltipTriggerEvent, event => this.onHotspotTriggerEvent(event));
}
}
onDeviceModeChange() {
this.elements.$hotspotsExcludesLinks.off();
this.bindEvents();
}
onHotspotTriggerEvent(event) {
const elementTarget = jQuery(event.target),
isHotspotButtonEvent = elementTarget.closest('.e-hotspot__button').length,
isTooltipMouseLeave = 'mouseleave' === event.type && (elementTarget.is('.e-hotspot--tooltip-position') || elementTarget.parents('.e-hotspot--tooltip-position').length),
isMobile = 'mobile' === elementorFrontend.getCurrentDeviceMode(),
isHotspotLink = elementTarget.closest('.e-hotspot--link').length,
triggerTooltip = !(isHotspotLink && isMobile && ('mouseleave' === event.type || 'mouseenter' === event.type));
if (triggerTooltip && (isHotspotButtonEvent || isTooltipMouseLeave)) {
const currentHotspot = jQuery(event.currentTarget);
this.elements.$hotspot.not(currentHotspot).removeClass('e-hotspot--active');
currentHotspot.toggleClass('e-hotspot--active');
}
}
// Fix bad UX of "Sequenced Animation" when editing other controls
editorAddSequencedAnimation() {
this.elements.$hotspot.toggleClass('e-hotspot--sequenced', 'yes' === this.getElementSettings('hotspot_sequenced_animation'));
}
hotspotSequencedAnimation() {
const elementSettings = this.getElementSettings(),
isSequencedAnimation = elementSettings.hotspot_sequenced_animation;
if ('no' === isSequencedAnimation) {
return;
}
// Start sequenced animation when element on viewport
const hotspotObserver = elementorModules.utils.Scroll.scrollObserver({
callback: event => {
if (event.isInViewport) {
hotspotObserver.unobserve(this.$element[0]);
// Add delay for each hotspot
this.elements.$hotspot.each((index, element) => {
if (0 === index) {
return;
}
const sequencedAnimation = elementSettings.hotspot_sequenced_animation_duration,
sequencedAnimationDuration = sequencedAnimation ? sequencedAnimation.size : 1000,
animationDelay = index * (sequencedAnimationDuration / this.elements.$hotspot.length);
element.style.animationDelay = animationDelay + 'ms';
});
}
}
});
hotspotObserver.observe(this.$element[0]);
}
setTooltipPositionControl() {
const elementSettings = this.getElementSettings(),
isDirectionAnimation = 'undefined' !== typeof elementSettings.tooltip_animation && elementSettings.tooltip_animation.match(/^e-hotspot--(slide|fade)-direction/);
if (isDirectionAnimation) {
this.elements.$tooltip.removeClass('e-hotspot--tooltip-animation-from-left e-hotspot--tooltip-animation-from-top e-hotspot--tooltip-animation-from-right e-hotspot--tooltip-animation-from-bottom');
this.elements.$tooltip.addClass('e-hotspot--tooltip-animation-from-' + elementSettings.tooltip_position);
}
}
onInit() {
super.onInit(...arguments);
this.hotspotSequencedAnimation();
this.setTooltipPositionControl();
if (window.elementor) {
elementor.listenTo(elementor.channels.deviceMode, 'change', () => this.onDeviceModeChange());
}
}
onElementChange(propertyName) {
if (propertyName.startsWith('tooltip_position')) {
this.setTooltipPositionControl();
}
if (propertyName.startsWith('hotspot_sequenced_animation')) {
this.editorAddSequencedAnimation();
}
}
}
exports["default"] = Hotspot;
/***/ })
}]);
//# sourceMappingURL=hotspot.d43ef85fb9e56c4414f4.bundle.js.map{
"name": "symfony\/polyfill-php81",
"type": "library",
"description": "Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions",
"keywords": [
"polyfill",
"shim",
"compatibility",
"portable"
],
"homepage": "https:\/\/symfony.com",
"license": "MIT",
"authors": [
{
"name": "Nicolas Grekas",
"email": "p@tchwork.com"
},
{
"name": "Symfony Community",
"homepage": "https:\/\/symfony.com\/contributors"
}
],
"require": {
"php": ">=7.2"
},
"autoload": {
"psr-4": {
"ElementorDeps\\Symfony\\Polyfill\\Php81\\": ""
},
"files": [
"bootstrap.php"
],
"classmap": [
"Resources\/stubs"
]
},
"minimum-stability": "dev",
"extra": {
"thanks": {
"name": "symfony\/polyfill",
"url": "https:\/\/github.com\/symfony\/polyfill"
}
}
}/**
* Get demo list to install
*
* @return array
*/
function gid_demo_list() {
/**
* return list array:
* name: Demo Name
* thumbnail: Demo thumbnail url
* preview: Link demo preview
* dir: Directory demo data
* theme: theme name
* callback: function callback
*/
return apply_filters( 'gid_demo_list', array() );
}add_action( 'wp_ajax_gid_install_demo_data', 'gid_install_demo_data' );
function gid_install_demo_data() {
if ( ! isset( $_POST['nonce'] )
|| ! wp_verify_nonce( $_POST['nonce'], 'gid_install_demo_data_action' )
) {
wp_send_json_error( esc_html__( 'Access Deny! Refresh website and try again!', 'gid' ) );
}
$step = $_POST['step'];
$demo = $_POST['demo'];
if ( ! defined( 'WP_LOAD_IMPORTERS' ) ) {
define( 'WP_LOAD_IMPORTERS', true );
}
switch ( $step ) {
case 'init':
{
gid_installing_demo_init( $demo );
break;
}
case 'data':
{
gid_installing_demo_data($demo);
break;
}
case 'slider':
{
gid_installing_demo_slider( $demo );
break;
}
case 'prepare':
{
gid_installing_prepare_data($demo);
break;
}
}
}
add_action( 'wp_ajax_gid_install_demo_setting', 'gid_install_demo_setting' );
function gid_install_demo_setting() {
if ( ! isset( $_POST['nonce'] )
|| ! wp_verify_nonce( $_POST['nonce'], 'gid_install_demo_data_action' )
) {
wp_send_json_error( esc_html__( 'Access Deny! Refresh website and try again!', 'gid' ) );
}
$step = $_POST['step'];
$demo = $_POST['demo'];
if ( ! defined( 'WP_LOAD_IMPORTERS' ) ) {
define( 'WP_LOAD_IMPORTERS', true );
}
switch ( $step ) {
case 'init':
{
gid_installing_demo_init( $demo, false );
break;
}
case 'data':
{
gid_installing_demo_data_for_setting($demo);
break;
}
case 'prepare':
{
gid_installing_prepare_data($demo);
break;
}
}
}
function gid_clear_database_for_install() {
/**
* Delete import log
*/
delete_option('gid_import_log_data');
/**
* Clear All Post & Page
*/
global $wpdb;
$current_blog_id = get_current_blog_id();
$target_table_prefix = $wpdb->get_blog_prefix( $current_blog_id );
$wpdb->query( "DELETE FROM {$target_table_prefix}postmeta" );
$wpdb->query( "DELETE FROM {$target_table_prefix}posts" );
$wpdb->query( "DELETE FROM {$target_table_prefix}termmeta" );
$wpdb->query( "DELETE FROM {$target_table_prefix}term_taxonomy" );
$wpdb->query( "DELETE FROM {$target_table_prefix}term_relationships" );
$wpdb->query( "DELETE FROM {$target_table_prefix}terms" );
}
function gid_installing_demo_init( $demo, $is_demo_all_data = true ) {
/**
* Check demo file exists
*/
$current_demo = gid_get_current_demo( $demo);
if ( ! isset( $current_demo['dir'] ) ) {
wp_send_json_error( esc_html__( 'Demo to install not found!', 'gid' ) );
}
$demo_dir = $current_demo['dir'];
$files_import_required = array('demo-data.xml', 'setting.json');
foreach ($files_import_required as $f) {
if ( ! is_readable( "{$demo_dir}/{$f}" ) ) {
wp_send_json_error( esc_html__( 'Demo to install not found!', 'gid' ) );
}
}
if ($is_demo_all_data) {
gid_clear_database_for_install();
}
/**
* Save setting to option
*/
gid_import_setting_file( $demo, $is_demo_all_data );
wp_send_json_success( array(
'step' => 'data',
'demo' => $demo,
'message' => esc_html__( 'Start Install Post', 'gid' )
) );
}
function gid_import_setting_file( $demo, $is_demo_all_data ) {
global $wpdb;
$data_process = gid_get_file_content( $demo, 'setting.json' );
foreach ( $data_process as $key => $value ) {
if (!$is_demo_all_data) {
$option_keys_no_import = apply_filters('gid_option_keys_no_import',
array(
'show_on_front',
'page_on_front',
'page_for_posts',
'woocommerce_shop_page_id',
'woocommerce_cart_page_id',
'woocommerce_checkout_page_id',
'woocommerce_myaccount_page_id',
'woocommerce_terms_page_id',
'yith_wcwl_wishlist_page_id'
));
if (in_array($key, $option_keys_no_import)) {
continue;
}
}
if ( get_option( $key ) === false ) {
$s_query = $wpdb->prepare( "insert into $wpdb->options(`option_name`, `option_value`, `autoload`) values(%s, %s, %s)", $key, base64_decode( $value["option_value"] ), $value["autoload"] );
} else {
$s_query = $wpdb->prepare( "update $wpdb->options set `option_value` = %s , `autoload` = %s where option_name = %s", base64_decode( $value["option_value"] ), $value["autoload"], $key );
}
$wpdb->query( $s_query );
}
}
function gid_installing_demo_data( $demo ) {
// Register Product Taxonomy
$gid_wc_attribute_tax = get_option('gid_wc_attribute_tax', array());
if (!empty($gid_wc_attribute_tax) && function_exists('wc_create_attribute')) {
foreach ($gid_wc_attribute_tax as $tax) {
wc_create_attribute(
array(
'name' => $tax['attribute_label'],
'slug' => $tax['attribute_name'],
'type' => $tax['attribute_type'],
'order_by' => $tax['attribute_orderby'],
'has_archives' => false,
)
);
register_taxonomy('pa_' . $tax['attribute_name'], array('product'));
}
}
$post_types_register = apply_filters('gid_post_types_register_before_install', array('g5core_vc_template'));
foreach ($post_types_register as $pt) {
register_post_type($pt, array());
}
$tax_register = apply_filters('gid_taxonomy_register_before_install', array(
'g5core_vc_template' => 'g5core_vc_template_cat'
));
foreach ($tax_register as $pt => $tax) {
register_taxonomy($tax, $pt);
}
$current_demo = gid_get_current_demo( $demo );
$demo_dir = $current_demo['dir'];
$data_file = "{$demo_dir}/demo-data.xml";
require_once GID()->plugin_dir('inc/lib/importer.php');
ob_start();
$_importer = new GID_Importer();
$import_result = $_importer->import( $data_file );
ob_get_clean();
if ( !$import_result ) {
wp_send_json_success( array(
'step' => 'data',
'demo' => $demo,
'message' => sprintf( esc_html__( 'Installing Post (%s/%s)', 'gid' ), $_importer->start_post_process, count($_importer->posts) ),
) );
}
$rev_sliders = gid_rev_slider_list( $demo );
$rev_slider_count = count( $rev_sliders );
if ( class_exists( 'RevSlider' ) && ( $rev_slider_count > 0 ) ) {
wp_send_json_success( array(
'step' => 'slider',
'demo' => $demo,
'current' => 1,
'message' => sprintf( esc_html__( 'Installing Slider (%s/%s)', 'gid' ), 1, $rev_slider_count ),
) );
} else {
wp_send_json_success( array(
'step' => 'prepare',
'demo' => $demo,
'message' => esc_html__( 'Prepare missing demo data', 'gid' ),
) );
}
}
function gid_installing_demo_data_for_setting( $demo ) {
// Register Product Taxonomy
$gid_wc_attribute_tax = get_option('gid_wc_attribute_tax', array());
if (!empty($gid_wc_attribute_tax) && function_exists('wc_create_attribute')) {
foreach ($gid_wc_attribute_tax as $tax) {
wc_create_attribute(
array(
'name' => $tax['attribute_label'],
'slug' => $tax['attribute_name'],
'type' => $tax['attribute_type'],
'order_by' => $tax['attribute_orderby'],
'has_archives' => false,
)
);
register_taxonomy('pa_' . $tax['attribute_name'], array('product'));
}
}
$current_demo = gid_get_current_demo( $demo );
$demo_dir = $current_demo['dir'];
$data_file = "{$demo_dir}/demo-data.xml";
require_once GID()->plugin_dir('inc/lib/importer.php');
ob_start();
$posts_id_allow_install = gid_get_file_content($demo, 'attachment.json');
$_importer = new GID_Importer();
$_importer->install_setting_only = true;
$_importer->post_type_allow_install = apply_filters('gid_post_type_allow_install', array('g5core_content', 'g5core_vc_template', 'g5core_xmenu_mega'));
$_importer->posts_id_allow_install = apply_filters('posts_id_allow_install', $posts_id_allow_install);
$import_result = $_importer->import( $data_file );
ob_get_clean();
if ( !$import_result ) {
wp_send_json_success( array(
'step' => 'data',
'demo' => $demo,
'message' => sprintf( esc_html__( 'Importing Data (%s/%s)', 'gid' ), $_importer->start_post_process, count($_importer->posts)),
) );
}
wp_send_json_success( array(
'step' => 'prepare',
'demo' => $demo,
'message' => esc_html__( 'Prepare missing demo data', 'gid' ),
) );
}
function gid_svg_mime_types($mimes) {
$mimes['svg'] = 'image/svg+xml';
return $mimes;
}
add_filter('mime_types','gid_svg_mime_types');
function gid_installing_demo_slider( $demo ) {
$current = intval( $_POST['current'] );
$rev_sliders = gid_rev_slider_list( $demo );
$total = count( $rev_sliders );
$slider_file = $rev_sliders[ $current - 1 ];
$slider = new RevSlider();
$slider->importSliderFromPost( true, true, $slider_file );
if ( $current < $total ) {
wp_send_json_success( array(
'step' => 'slider',
'demo' => $demo,
'message' => sprintf( esc_html__( 'Installing Slider (%s/%s)', 'gid' ), $current + 1, $total ),
'current' => $current + 1
) );
} else {
wp_send_json_success( array(
'step' => 'prepare',
'demo' => $demo,
'message' => esc_html__( 'Prepare Demo Data', 'gid' ),
) );
}
}
function gid_installing_prepare_data( $demo ) {
global $wpdb, $terms_id_log, $posts_id_log;
$current_demo = gid_get_current_demo( $demo );
$site_url = trailingslashit( site_url() );
$demo_url = trailingslashit($current_demo['preview']);
$current_blog_id = get_current_blog_id();
$main_site_id = get_main_site_id();
$target_table_prefix = $wpdb->get_blog_prefix( $current_blog_id );
$theme_name = $current_demo['theme'];
$sql_query = $wpdb->prepare( "UPDATE {$target_table_prefix}posts SET guid = replace(guid, %s, %s)", 'http://demo2.woothemes.com/woocommerce', $site_url );
$wpdb->query( $sql_query );
/**
* Other Update
*/
// Update COUNT term_taxonomy
$sql_query = "UPDATE {$target_table_prefix}term_taxonomy tt SET count = (SELECT count(p.ID) FROM {$target_table_prefix}term_relationships tr LEFT JOIN {$target_table_prefix}posts p ON (p.ID = tr.object_id AND p.post_status = 'publish') WHERE tr.term_taxonomy_id = tt.term_taxonomy_id)";
$wpdb->query( $sql_query );
// Update MailChimp
$rows = $wpdb->get_results( $wpdb->prepare( "SELECT ID FROM {$target_table_prefix}posts WHERE post_type = %s and post_status = 'publish'", 'mc4wp-form' ) );
if ( count( $rows ) > 0 ) {
update_option( 'mc4wp_default_form_id', $rows[0]->ID );
}
$import_log_data = get_option( 'gid_import_log_data', array() );
$posts_id_log = isset( $import_log_data['processed_posts'] ) ? $import_log_data['processed_posts'] : array();
$terms_id_log = isset( $import_log_data['processed_terms'] ) ? $import_log_data['processed_terms'] : array();
// Change nav_menu_location
$data = get_option( 'theme_mods_' . $theme_name );
if ( isset( $data['nav_menu_locations'] ) ) {
foreach ( $data['nav_menu_locations'] as $key => $value ) {
$data['nav_menu_locations'][ $key ] = isset( $terms_id_log[ $value ] ) ? $terms_id_log[ $value ] : $value;
}
}
update_option( 'theme_mods_' . get_option( "stylesheet" ), $data );
$opt_widget_sidebars = get_option( 'sidebars_widgets' );
foreach ($opt_widget_sidebars as $k => $v) {
if (!is_array($v)) {
unset($opt_widget_sidebars[$k]);
}
}
// Change theme_mod
$data['sidebars_widgets'] = array(
'time' => time(),
'data' => $opt_widget_sidebars
);
if ( is_child_theme() ) {
update_option( 'theme_mods_' . get_template(), $data );
} else {
update_option( 'theme_mods_' . get_option( "stylesheet" ) . '-child', $data );
}
// Change nav_menu ID in widget
$data_nav_menu = get_option( 'widget_nav_menu' );
if ( isset( $data_nav_menu ) && is_array( $data_nav_menu ) ) {
foreach ( $data_nav_menu as $key => $value ) {
if ( is_array( $value ) && isset( $value['nav_menu'] ) ) {
$data_nav_menu[ $key ]['nav_menu'] = isset( $terms_id_log[ $value['nav_menu'] ] ) ? $terms_id_log[ $value['nav_menu'] ] : $value['nav_menu'];
}
}
}
update_option( 'widget_nav_menu', $data_nav_menu );
/**
* Change post id in option
*/
$options_keys = apply_filters( 'gid_options_key_change_post_id', array(
'page_on_front' => '=',
'page_for_posts' => '=',
'wp_page_for_privacy_policy' => '=',
'yith_%_page_id' => 'like',
'woocommerce_%_page_id' => 'like',
) );
foreach ( $options_keys as $opt_key => $opt_op) {
$rows_found = $wpdb->get_results( $wpdb->prepare( "SELECT option_name FROM {$target_table_prefix}options WHERE option_name {$opt_op} %s", $opt_key ) );
foreach ( $rows_found as $row ) {
$old_id = get_option( $row->option_name );
if ( ( $old_id !== false ) && is_numeric( $old_id ) ) {
$old_id = intval( $old_id );
update_option( $row->option_name, isset( $posts_id_log[ $old_id ] ) ? $posts_id_log[ $old_id ] : $old_id );
}
}
}
/**
* Change term id in option
*/
$options_keys = apply_filters( 'gid_options_key_change_term_id', array() );
foreach ( $options_keys as $opt_key ) {
$rows_found = $wpdb->get_results( $wpdb->prepare( "SELECT option_name FROM {$target_table_prefix}options WHERE option_name = %s", $opt_key ) );
foreach ( $rows_found as $row ) {
$old_id = get_option( $row->option_name );
if ( ( $old_id !== false ) && is_numeric( $old_id ) ) {
$old_id = intval( $old_id );
update_option( $row->option_name, isset( $terms_id_log[ $old_id ] ) ? $terms_id_log[ $old_id ] : $old_id );
}
}
}
/**
* Change post id in post meta
*/
$meta_keys = apply_filters( 'gid_post_meta_change_post_id', array(
'g5core_footer_content_block',
'g5core_page_title_content_block'
) );
foreach ( $meta_keys as $mt_key ) {
$rows_found = $wpdb->get_results( $wpdb->prepare( "SELECT post_id, meta_value, meta_key FROM {$target_table_prefix}postmeta WHERE meta_key = %s", $mt_key ) );
foreach ( $rows_found as $row ) {
if ( isset( $posts_id_log[ $row->meta_value ] ) ) {
update_post_meta( $row->post_id, $row->meta_key, $posts_id_log[ $row->meta_value ] );
}
}
}
/**
* Change term id in post meta
*/
$meta_keys = apply_filters( 'gid_post_meta_change_term_id', array(
"g5core_page_menu" => '=',
"g5core_page_mobile_menu" => '=',
) );
foreach ( $meta_keys as $mt_key => $mt_opt ) {
$rows_found = $wpdb->get_results( $wpdb->prepare( "SELECT post_id, meta_value, meta_key FROM {$target_table_prefix}postmeta WHERE meta_key {$mt_opt} %s", $mt_key ) );
foreach ( $rows_found as $row ) {
if ( isset( $terms_id_log[ $row->meta_value ] ) ) {
update_post_meta( $row->post_id, $row->meta_key, $terms_id_log[ $row->meta_value ] );
}
}
}
/**
* change post id in term meta
*/
$meta_keys = apply_filters( 'gid_term_meta_change_post_id', array(
"thumbnail_id" => '=',
'g5core_page_title_content_block' => '='
) );
foreach ( $meta_keys as $mt_key => $mt_opt ) {
$rows_found = $wpdb->get_results( $wpdb->prepare( "SELECT meta_id, term_id, meta_key, meta_value FROM {$target_table_prefix}termmeta WHERE meta_key {$mt_opt} %s", $mt_key ) );
foreach ( $rows_found as $row ) {
update_term_meta( $row->term_id, $row->meta_key, isset( $posts_id_log[ $row->meta_value ] ) ? $posts_id_log[ $row->meta_value ] : $row->meta_value );
}
}
/**
* Change term id in term meta
*/
$meta_keys = apply_filters( 'gid_term_meta_change_term_id', array(
'property_neighborhood_country',
'property_neighborhood_state',
'property_neighborhood_city',
'property_city_country',
'property_city_state',
'property_state_country'
) );
foreach ( $meta_keys as $mt_key ) {
$rows_found = $wpdb->get_results( $wpdb->prepare( "SELECT meta_id, term_id, meta_key, meta_value FROM {$target_table_prefix}termmeta WHERE meta_key = %s", $mt_key ) );
foreach ( $rows_found as $row ) {
update_term_meta( $row->term_id, $row->meta_key, isset( $terms_id_log[ $row->meta_value ] ) ? $terms_id_log[ $row->meta_value ] : $row->meta_value );
}
}
/**
* Change media field (url, id) in theme-option
*/
$options_keys = apply_filters( 'gid_options_key_change_theme_options', array(
'g5%' => 'like',
'gsf_preset_options_keys_%' => 'like',
) );
foreach ($options_keys as $key => $value) {
$options = $wpdb->get_results($wpdb->prepare("SELECT option_name FROM {$target_table_prefix}options WHERE option_name {$value} %s",$key));
foreach ( $options as $option ) {
$optionValue = get_option( $option->option_name );
foreach ( $optionValue as $key => &$value ) {
if ( isset( $value['id'] ) && ( isset( $value['url'] ) || $value['background_image_url'] ) ) {
$value['id'] = isset( $posts_id_log[ $value['id'] ] ) ? $posts_id_log[ $value['id'] ] : $value['id'];
}
if ( is_string( $value ) && ( strpos( $value, '|' ) !== false ) ) {
$value = explode( '|', $value );
foreach ( $value as $k => $v ) {
$value[ $key ] = isset( $posts_id_log[ $v ] ) ? $posts_id_log[ $v ] : $v;
}
$value = join( '|', $value );
}
if ( in_array( $key, array(
'maintenance_mode_page',
'page_404_custom',
'footer_content_block',
'page_title_content_block'
) ) || ( preg_match( '/_(single|archive)__(page_title_content_block|footer_content_block)$/', $key ) ) ) {
$value = isset( $posts_id_log[ $value ] ) ? $posts_id_log[ $value ] : $value;
}
if (in_array($key, array('swatches_taxonomy'))) {
$value = isset( $terms_id_log[ $value ] ) ? $terms_id_log[ $value ] : $value;
}
}
update_option( $option->option_name, $optionValue );
}
}
// Change url, post_id, gallery in post meta
$meta_keys = apply_filters( 'gid_post_meta_change_media_field', array(
'g5blog_format_gallery_images',
'g5portfolio_single_gallery',
'real_estate_property_images',
'real_estate_property_video_image',
'real_estate_property_attachments',
'real_estate_property_agent'
) );
foreach ( $meta_keys as $mt_key ) {
$rows_found = $wpdb->get_results( $wpdb->prepare( "SELECT post_id, meta_value, meta_key FROM {$target_table_prefix}postmeta WHERE meta_key = %s", $mt_key ) );
foreach ( $rows_found as $row ) {
$meta_value = get_post_meta( $row->post_id, $row->meta_key, true );
if ( isset( $meta_value['id'] ) && ( isset( $meta_value['url'] ) || $meta_value['background_image_url'] ) ) {
$meta_value['id'] = isset( $posts_id_log[ $meta_value['id'] ] ) ? $posts_id_log[ $meta_value['id'] ] : $meta_value['id'];
}
if ( is_string( $meta_value ) && ( strpos( $meta_value, '|' ) !== false ) ) {
$meta_value = explode( '|', $meta_value );
foreach ( $meta_value as $k => $v ) {
$meta_value[ $k ] = isset( $posts_id_log[ $v ] ) ? $posts_id_log[ $v ] : $v;
}
$meta_value = join( '|', $meta_value );
}
update_post_meta( $row->post_id, $row->meta_key, $meta_value );
}
}
// Change url, post_id, gallery in term meta
$meta_keys = apply_filters( 'gid_term_meta_change_media_field', array(
'g5shop_archive_banner_image',
'g5shop_archive_banner_gallery',
'g5shop_product_taxonomy_image',
'agency_logo',
'g5ere_marker_image'
) );
foreach ( $meta_keys as $mt_key ) {
$rows_found = $wpdb->get_results( $wpdb->prepare( "SELECT meta_id, term_id, meta_key, meta_value FROM {$target_table_prefix}termmeta WHERE meta_key = %s", $mt_key ) );
foreach ( $rows_found as $row ) {
$meta_value = get_term_meta( $row->term_id, $row->meta_key, true );
if ( isset( $meta_value['id'] ) && ( isset( $meta_value['url'] ) || $meta_value['background_image_url'] ) ) {
$meta_value['id'] = isset( $terms_id_log[ $meta_value['id'] ] ) ? $terms_id_log[ $meta_value['id'] ] : $meta_value['id'];
}
if ( is_string( $meta_value ) && ( strpos( $meta_value, '|' ) !== false ) ) {
$meta_value = explode( '|', $meta_value );
foreach ( $meta_value as $k => $v ) {
$meta_value[ $key ] = isset( $terms_id_log[ $v ] ) ? $terms_id_log[ $v ] : $v;
}
$meta_value = join( '|', $meta_value );
}
update_term_meta( $row->term_id, $row->meta_key, $meta_value );
}
}
// Change term id, post id in post_content
$rows = $wpdb->get_results( $wpdb->prepare( "SELECT ID, post_content FROM {$target_table_prefix}posts WHERE post_status = %s", 'publish' ) );
foreach ( $rows as $row ) {
$row->post_content = preg_replace_callback( '/((nav_menu|cat|tag|property_type|property_status|property_feature|property_label|property_state|property_city|property_neighborhood|agency)\=\")(\d+(\,(\d+))*)(\")/', 'gid_replace_term_id_callback', $row->post_content );
$row->post_content = preg_replace_callback( '/((image|image_hover|avatar|images|ids|id)\=\")(\d+(\,(\d+))*)(\")/', 'gid_replace_post_id_callback', $row->post_content );
$sql_query = $wpdb->prepare( "UPDATE {$target_table_prefix}posts SET post_content = %s where ID = %d ", $row->post_content, $row->ID );
$wpdb->query( $sql_query );
}
$replace_array = array();
$replace_array[$demo_url] = $site_url;
$replace_array[urlencode($demo_url)] = urlencode($site_url);
$replace_array[urlencode(urlencode($demo_url))] = urlencode(urlencode($site_url));
$replace_array[str_replace('/', '\\/', $demo_url)] = str_replace('/', '\\/', $site_url);
$replace_array[str_replace('/', '\\\\/', $demo_url)] = str_replace('/', '\\\\/', $site_url);
// multisite
if ($current_blog_id !== $main_site_id) {
$source_uploads_dir = '/wp-content/uploads/';
$target_uploads_dir = '/wp-content/uploads/sites/' . $current_blog_id . '/';
$replace_array[ $source_uploads_dir ] = $target_uploads_dir;
$replace_array[ urlencode($source_uploads_dir) ] = urlencode($target_uploads_dir);
$replace_array[ urlencode(urlencode($source_uploads_dir)) ] = urlencode(urlencode($target_uploads_dir));
$replace_array[ str_replace('/', '\\/', $source_uploads_dir) ] = str_replace('/', '\\/', $target_uploads_dir);
$replace_array[ str_replace('/', '\\\\/', $source_uploads_dir) ] = str_replace('/', '\\\\/', $target_uploads_dir);
}
gid_replace_database($replace_array);
do_action('gid_installing_prepare_data_success', $demo);
wp_send_json_success( array(
'step' => 'done',
'demo' => $demo,
'message' => esc_html__( 'Install Done', 'gid' ),
) );
}
function gid_rev_slider_list( $demo ) {
$current_demo = gid_get_current_demo( $demo );
$demo_dir = trailingslashit($current_demo['dir']);
$rs_path = "{$demo_dir}revslider";
$rev_sliders = glob( "{$rs_path}/*.zip" );
return $rev_sliders;
}
function gid_get_file_content( $demo, $file ) {
$current_demo = gid_get_current_demo( $demo );
$demo_dir = $current_demo['dir'];
$data_file = "{$demo_dir}/{$file}";
if ( is_readable( $data_file ) ) {
return json_decode( file_get_contents( $data_file ), true );
}
return array();
}
function gid_get_current_demo( $demo ) {
$demo_list = gid_demo_list();
return isset( $demo_list[ $demo ] ) ? $demo_list[ $demo ] : array();
}
function gid_replace_term_id_callback($match) {
global $terms_id_log;
$ids = explode(',', $match[3]);
foreach($ids as $k => $id) {
$ids[$k] = isset($terms_id_log[$id]) ? $terms_id_log[$id] : $id;
}
return $match[1] . join(',', $ids) . $match[6];
}
function gid_replace_post_id_callback($match) {
global $posts_id_log;
$ids = explode(',', $match[3]);
foreach($ids as $k => $id) {
$ids[$k] = isset($posts_id_log[$id]) ? $posts_id_log[$id] : $id;
}
return $match[1] . join(',', $ids) . $match[6];
}
function gid_replace_database($replace_array) {
global $wpdb;
$current_blog_id = get_current_blog_id();
$table_prefix = $wpdb->get_blog_prefix( $current_blog_id );
$list_tables = $wpdb->get_results( $wpdb->prepare( "SHOW TABLES LIKE %s", $table_prefix . '%' ), ARRAY_N );
foreach ($list_tables as $tbl) {
$table_name = $tbl[0];
$test_row = $wpdb->get_row( "SELECT * FROM " . $table_name . " LIMIT 1", ARRAY_N );
$list_column_name = $wpdb->get_col_info( 'name', - 1 );
// Search for fields we can replace
$where = '';
foreach ( $replace_array as $old_value => $new_value ) {
foreach ( $list_column_name as $column_name ) {
$where .= empty( $where ) ? '' : ' OR ';
$where .= $wpdb->prepare( "`{$column_name}`" . ' like %s ', '%' . str_replace('\\', '\\\\', $old_value) . '%' );
}
}
$replace_rows = $wpdb->get_results( "SELECT * FROM {$table_name} WHERE " . $where, ARRAY_A );
if ( ! count( $replace_rows ) ) {
continue;
}
foreach ( $replace_rows as $row ) {
$query = 'UPDATE ' . $table_name;
$set = '';
$is_execute_query = false;
foreach ( $row as $col_name => $col_content ) {
if ( ! is_string( $col_content ) ) {
continue;
}
$edited_value = $col_content;
if ( is_serialized( $col_content ) ) {
$unserialized = unserialize( $edited_value );
foreach ( $replace_array as $old_value => $new_value ) {
gid_recursive_replace_data( $old_value, $new_value, $unserialized );
}
$edited_value = serialize( $unserialized );
} else {
if (is_string($col_content)) {
foreach ( $replace_array as $old_value => $new_value ) {
$edited_value = str_replace( $old_value, $new_value, $edited_value );
}
}
}
if ( $edited_value != $col_content ) {
$set .= empty( $set ) ? '' : ', ';
$set .= $wpdb->prepare( $col_name . ' = %s ', $edited_value );
$is_execute_query = true;
}
}
$query .= ' SET ' . $set;
// Form where keys based on the primary keys ('ID' or '*_ID')
$where_keys = '';
foreach ( $row as $col_name => $col_content ) {
if ( strtolower( $col_name ) != 'id' || stripos( strtolower( $col_name ), '_id' ) === false ) {
continue;
}
$where_keys .= empty( $where_keys ) ? '' : ' AND ';
$where_keys .= $wpdb->prepare( $col_name . ' = %s ', $col_content );
}
// If no where clause yet, use everything
if ( empty( $where_keys ) ) {
foreach ( $row as $col_name => $col_content ) {
$where_keys .= empty( $where_keys ) ? '' : ' AND ';
$where_keys .= $wpdb->prepare( $col_name . ' = %s ', $col_content );
}
}
$query .= ' WHERE ' . $where_keys;
if ( $is_execute_query ) {
$wpdb->query( $query );
}
}
}
}
function gid_recursive_replace_data($find, $replace, &$data) {
if ( is_array( $data ) ) {
foreach ( $data as $key => $value ) {
gid_recursive_replace_data( $find, $replace, $data[ $key ] );
}
}
else if (is_object($data)) {
foreach ( $data as $key => $value ) {
gid_recursive_replace_data( $find, $replace, $data->{$key} );
}
}
else if (is_string($data)){
$data = str_replace( $find, $replace, $data );
}
}import { Select } from '@elementor/app-ui';
export default function ConditionName( props ) {
// Hide for template types that has another default, like single & archive.
if ( 'general' !== props.default ) {
return '';
}
const onChange = ( e ) => props.updateConditions( props.id, { name: e.target.value, sub: '', subId: '' } );
return (
);
}
ConditionName.propTypes = {
updateConditions: PropTypes.func.isRequired,
id: PropTypes.string.isRequired,
name: PropTypes.string.isRequired,
options: PropTypes.array.isRequired,
default: PropTypes.string.isRequired,
};
ConditionName.defaultProps = {
name: '',
};
/*! elementor-pro - v3.15.0 - 09-08-2023 */
.elementor-widget-table-of-contents .elementor-toc__header-title{color:var(--header-color)}.elementor-widget-table-of-contents.elementor-toc--collapsed .elementor-toc__toggle-button--collapse,.elementor-widget-table-of-contents:not(.elementor-toc--collapsed) .elementor-toc__toggle-button--expand{display:none}.elementor-widget-table-of-contents .elementor-widget-container{min-height:var(--box-min-height);border:var(--box-border-width,1px) solid var(--box-border-color,#9da5ae);border-radius:var(--box-border-radius,3px);background-color:var(--box-background-color);transition:min-height .4s;overflow:hidden}.elementor-toc__header{display:flex;align-items:center;justify-content:space-between;padding:var(--box-padding,20px);background-color:var(--header-background-color);border-bottom:var(--separator-width,1px) solid var(--box-border-color,#9da5ae)}.elementor-toc__header-title{font-size:18px;margin:0;color:var(--header-color)}.elementor-toc__toggle-button{cursor:pointer;display:inline-flex}.elementor-toc__toggle-button i{color:var(--toggle-button-color)}.elementor-toc__toggle-button svg{height:1em;width:1em;fill:var(--toggle-button-color)}.elementor-toc__spinner-container{text-align:center}.elementor-toc__spinner{font-size:2em}.elementor-toc__spinner.e-font-icon-svg{height:1em;width:1em}.elementor-toc__body{padding:var(--box-padding,20px);max-height:var(--toc-body-max-height);overflow-y:auto}.elementor-toc__body::-webkit-scrollbar{width:7px}.elementor-toc__body::-webkit-scrollbar-thumb{background-color:#babfc5;border-radius:10px}.elementor-toc__list-wrapper{list-style:none;padding:0}.elementor-toc__list-item{margin-bottom:.5em}.elementor-toc__list-item.elementor-item-active{font-weight:700}.elementor-toc__list-item .elementor-toc__list-wrapper{margin-top:.5em;margin-right:var(--nested-list-indent,1em)}.elementor-toc__list-item-text:hover{color:var(--item-text-hover-color);-webkit-text-decoration:var(--item-text-hover-decoration);text-decoration:var(--item-text-hover-decoration)}.elementor-toc__list-item-text.elementor-item-active{color:var(--item-text-active-color);-webkit-text-decoration:var(--item-text-active-decoration);text-decoration:var(--item-text-active-decoration)}.elementor-toc__list-item-text-wrapper{display:flex;align-items:center}.elementor-toc__list-item-text-wrapper:before,.elementor-toc__list-item-text-wrapper i{margin-left:8px;color:var(--marker-color)}.elementor-toc__list-item-text-wrapper svg{margin-left:8px;fill:var(--marker-color);height:var(--marker-size,.5em);width:var(--marker-size,.5em)}.elementor-toc__list-item-text-wrapper i{font-size:var(--marker-size,.5em)}.elementor-toc__list-item-text-wrapper:before{font-size:var(--marker-size,1em)}.elementor-toc--content-ellipsis .elementor-toc__list-item-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.elementor-toc__list-items--collapsible>.elementor-toc__list-wrapper>.elementor-toc__list-item>.elementor-toc__list-wrapper{display:none}.elementor-toc__heading-anchor{position:absolute}.elementor-toc__body .elementor-toc__list-item-text{color:var(--item-text-color);-webkit-text-decoration:var(--item-text-decoration);text-decoration:var(--item-text-decoration)}.elementor-toc__body .elementor-toc__list-item-text:hover{color:var(--item-text-hover-color);-webkit-text-decoration:var(--item-text-hover-decoration);text-decoration:var(--item-text-hover-decoration)}.elementor-toc__body .elementor-toc__list-item-text.elementor-item-active{color:var(--item-text-active-color);-webkit-text-decoration:var(--item-text-active-decoration);text-decoration:var(--item-text-active-decoration)}ol.elementor-toc__list-wrapper{counter-reset:item}ol.elementor-toc__list-wrapper .elementor-toc__list-item{counter-increment:item}ol.elementor-toc__list-wrapper .elementor-toc__list-item-text-wrapper:before{content:counters(item,".") ". "}/*
Plugin Name: MC4WP: Mailchimp for WordPress
Plugin URI: https://www.mc4wp.com/#utm_source=wp-plugin&utm_medium=mailchimp-for-wp&utm_campaign=plugins-page
Description: Mailchimp for WordPress by ibericode. Adds various highly effective sign-up methods to your site.
Version: 4.9.10
Author: ibericode
Author URI: https://ibericode.com/
Text Domain: mailchimp-for-wp
Domain Path: /languages
License: GPL v3
Mailchimp for WordPress
Copyright (C) 2012-2023, Danny van Kooten, hi@dannyvankooten.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .
*/
// Prevent direct file access
defined( 'ABSPATH' ) or exit;
/** @ignore */
function _mc4wp_load_plugin() {
global $mc4wp;
// don't run if Mailchimp for WP Pro 2.x is activated
if ( defined( 'MC4WP_VERSION' ) ) {
return;
}
// don't run if PHP version is lower than 5.3
if ( ! function_exists( 'array_replace' ) ) {
return;
}
// bootstrap the core plugin
define( 'MC4WP_VERSION', '4.9.10' );
define( 'MC4WP_PLUGIN_DIR', __DIR__ );
define( 'MC4WP_PLUGIN_FILE', __FILE__ );
// load autoloader if function not yet exists (for compat with sitewide autoloader)
if ( ! function_exists( 'mc4wp' ) ) {
require_once MC4WP_PLUGIN_DIR . '/vendor/autoload.php';
}
require MC4WP_PLUGIN_DIR . '/includes/default-actions.php';
require MC4WP_PLUGIN_DIR . '/includes/default-filters.php';
// require API class manually because Composer's classloader is case-sensitive
// but we need it to pass class_exists condition
require MC4WP_PLUGIN_DIR . '/includes/api/class-api-v3.php';
/**
* @global MC4WP_Container $GLOBALS['mc4wp']
* @name $mc4wp
*/
$mc4wp = mc4wp();
$mc4wp['api'] = 'mc4wp_get_api_v3';
$mc4wp['log'] = 'mc4wp_get_debug_log';
// forms
$form_manager = new MC4WP_Form_Manager();
$form_manager->add_hooks();
$mc4wp['forms'] = $form_manager;
// integration core
$integration_manager = new MC4WP_Integration_Manager();
$integration_manager->add_hooks();
$mc4wp['integrations'] = $integration_manager;
// Initialize admin section of plugin
if ( is_admin() ) {
$admin_tools = new MC4WP_Admin_Tools();
if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
$ajax = new MC4WP_Admin_Ajax( $admin_tools );
$ajax->add_hooks();
} else {
$messages = new MC4WP_Admin_Messages();
$mc4wp['admin.messages'] = $messages;
$admin = new MC4WP_Admin( $admin_tools, $messages );
$admin->add_hooks();
$forms_admin = new MC4WP_Forms_Admin( $messages );
$forms_admin->add_hooks();
$integrations_admin = new MC4WP_Integration_Admin( $mc4wp['integrations'], $messages );
$integrations_admin->add_hooks();
}
}
}
function _mc4wp_on_plugin_activation() {
// schedule the action hook to refresh the stored Mailchimp lists on a daily basis
$time_string = sprintf( 'tomorrow %d:%d am', rand( 0, 7 ), rand( 0, 59 ) );
wp_schedule_event( strtotime( $time_string ), 'daily', 'mc4wp_refresh_mailchimp_lists' );
}
// bootstrap custom integrations
function _mc4wp_bootstrap_integrations() {
require_once MC4WP_PLUGIN_DIR . '/integrations/bootstrap.php';
}
add_action( 'plugins_loaded', '_mc4wp_load_plugin', 8 );
add_action( 'plugins_loaded', '_mc4wp_bootstrap_integrations', 90 );
register_activation_hook( __FILE__, '_mc4wp_on_plugin_activation' );
/*
Plugin Name: Post Views Counter
Description: Post Views Counter allows you to display how many times a post, page or custom post type had been viewed in a simple, fast and reliable way.
Version: 1.4.3
Author: dFactory
Author URI: https://dfactory.co/
Plugin URI: https://postviewscounter.com/
License: MIT License
License URI: http://opensource.org/licenses/MIT
Text Domain: post-views-counter
Domain Path: /languages
Post Views Counter
Copyright (C) 2014-2023, Digital Factory - info@digitalfactory.pl
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
// exit if accessed directly
if ( ! defined( 'ABSPATH' ) )
exit;
if ( ! class_exists( 'Post_Views_Counter' ) ) {
/**
* Post Views Counter final class.
*
* @class Post_Views_Counter
* @version 1.4.3
*/
final class Post_Views_Counter {
private static $instance;
private $notices;
public $options;
public $defaults = [
'general' => [
'post_types_count' => [ 'post' ],
'taxonomies_count' => false,
'users_count' => false,
'other_count' => false,
'data_storage' => 'cookies',
'amp_support' => false,
'counter_mode' => 'php',
'post_views_column' => true,
'restrict_edit_views' => false,
'time_between_counts' => [
'number' => 24,
'type' => 'hours'
],
'reset_counts' => [
'number' => 0,
'type' => 'days'
],
'object_cache' => false,
'flush_interval' => [
'number' => 0,
'type' => 'minutes'
],
'exclude' => [
'groups' => [],
'roles' => []
],
'exclude_ips' => [],
'strict_counts' => false,
'cron_run' => true,
'cron_update' => true,
'update_version' => 1,
'update_notice' => true,
'update_delay_date' => 0
],
'display' => [
'label' => 'Post Views:',
'taxonomies_display' => [],
'user_display' => false,
'post_types_display' => [ 'post' ],
'page_types_display' => [ 'singular' ],
'restrict_display' => [
'groups' => [],
'roles' => []
],
'position' => 'after',
'display_style' => [
'icon' => true,
'text' => true
],
'icon_class' => 'dashicons-chart-bar',
'toolbar_statistics' => true
],
'other' => [
'menu_position' => 'top',
'deactivation_delete' => false,
'license' => ''
],
'version' => '1.4.3'
];
// instances
public $counter;
public $crawler;
public $cron;
public $dashboard;
public $frontend;
public $functions;
public $settings_api;
/**
* Disable object cloning.
*
* @return void
*/
public function __clone() {}
/**
* Disable unserializing of the class.
*
* @return void
*/
public function __wakeup() {}
/**
* Main plugin instance, insures that only one instance of the class exists in memory at one time.
*
* @return object
*/
public static function instance() {
if ( ! isset( self::$instance ) && ! ( self::$instance instanceof Post_Views_Counter ) ) {
self::$instance = new Post_Views_Counter();
// short init?
if ( defined( 'SHORTINIT' ) && SHORTINIT ) {
include_once( POST_VIEWS_COUNTER_PATH . 'includes/class-counter.php' );
include_once( POST_VIEWS_COUNTER_PATH . 'includes/class-crawler-detect.php' );
include_once( POST_VIEWS_COUNTER_PATH . 'includes/functions.php' );
self::$instance->counter = new Post_Views_Counter_Counter();
self::$instance->crawler = new Post_Views_Counter_Crawler_Detect();
// regular setup
} else {
add_action( 'init', [ self::$instance, 'load_textdomain' ] );
self::$instance->includes();
// create settings API
self::$instance->settings_api = new Post_Views_Counter_Settings_API(
[
'object' => self::$instance,
'prefix' => 'post_views_counter',
'slug' => 'post-views-counter',
'domain' => 'post-views-counter',
'plugin' => 'Post Views Counter',
'plugin_url' => POST_VIEWS_COUNTER_URL
]
);
// initialize other classes
self::$instance->functions = new Post_Views_Counter_Functions();
new Post_Views_Counter_Update();
new Post_Views_Counter_Settings();
new Post_Views_Counter_Admin();
new Post_Views_Counter_Query();
self::$instance->cron = new Post_Views_Counter_Cron();
self::$instance->counter = new Post_Views_Counter_Counter();
new Post_Views_Counter_Columns();
self::$instance->crawler = new Post_Views_Counter_Crawler_Detect();
self::$instance->frontend = new Post_Views_Counter_Frontend();
self::$instance->dashboard = new Post_Views_Counter_Dashboard();
new Post_Views_Counter_Widgets();
}
}
return self::$instance;
}
/**
* Setup plugin constants.
*
* @return void
*/
private function define_constants() {
// fix plugin_basename empty $wp_plugin_paths var
if ( ! ( defined( 'SHORTINIT' ) && SHORTINIT ) ) {
define( 'POST_VIEWS_COUNTER_URL', plugins_url( '', __FILE__ ) );
define( 'POST_VIEWS_COUNTER_BASENAME', plugin_basename( __FILE__ ) );
define( 'POST_VIEWS_COUNTER_REL_PATH', dirname( POST_VIEWS_COUNTER_BASENAME ) );
}
define( 'POST_VIEWS_COUNTER_PATH', plugin_dir_path( __FILE__ ) );
}
/**
* Include required files.
*
* @return void
*/
private function includes() {
include_once( POST_VIEWS_COUNTER_PATH . 'includes/class-functions.php' );
include_once( POST_VIEWS_COUNTER_PATH . 'includes/class-update.php' );
include_once( POST_VIEWS_COUNTER_PATH . 'includes/class-settings-api.php' );
include_once( POST_VIEWS_COUNTER_PATH . 'includes/class-settings.php' );
include_once( POST_VIEWS_COUNTER_PATH . 'includes/class-admin.php' );
include_once( POST_VIEWS_COUNTER_PATH . 'includes/class-columns.php' );
include_once( POST_VIEWS_COUNTER_PATH . 'includes/class-query.php' );
include_once( POST_VIEWS_COUNTER_PATH . 'includes/class-cron.php' );
include_once( POST_VIEWS_COUNTER_PATH . 'includes/class-counter.php' );
include_once( POST_VIEWS_COUNTER_PATH . 'includes/class-crawler-detect.php' );
include_once( POST_VIEWS_COUNTER_PATH . 'includes/class-frontend.php' );
include_once( POST_VIEWS_COUNTER_PATH . 'includes/class-dashboard.php' );
include_once( POST_VIEWS_COUNTER_PATH . 'includes/class-widgets.php' );
}
/**
* Class constructor.
*
* @return void
*/
private function __construct() {
// define plugin constants
$this->define_constants();
// short init?
if ( defined( 'SHORTINIT' ) && SHORTINIT ) {
$this->options = [
'general' => array_merge( $this->defaults['general'], get_option( 'post_views_counter_settings_general', $this->defaults['general'] ) ),
'display' => array_merge( $this->defaults['display'], get_option( 'post_views_counter_settings_display', $this->defaults['display'] ) ),
'other' => array_merge( $this->defaults['other'], get_option( 'post_views_counter_settings_other', $this->defaults['other'] ) )
];
return;
}
// activation hooks
register_activation_hook( __FILE__, [ $this, 'activation' ] );
register_deactivation_hook( __FILE__, [ $this, 'deactivation' ] );
// settings
$this->options = [
'general' => array_merge( $this->defaults['general'], get_option( 'post_views_counter_settings_general', $this->defaults['general'] ) ),
'display' => array_merge( $this->defaults['display'], get_option( 'post_views_counter_settings_display', $this->defaults['display'] ) ),
'other' => array_merge( $this->defaults['other'], get_option( 'post_views_counter_settings_other', $this->defaults['other'] ) )
];
// actions
add_action( 'admin_enqueue_scripts', [ $this, 'admin_enqueue_scripts' ] );
add_action( 'wp_loaded', [ $this, 'load_pluggable_functions' ] );
add_action( 'admin_init', [ $this, 'update_notice' ] );
add_action( 'wp_initialize_site', [ $this, 'initialize_new_network_site' ] );
add_action( 'wp_ajax_pvc_dismiss_notice', [ $this, 'dismiss_notice' ] );
// filters
add_filter( 'plugin_action_links_' . POST_VIEWS_COUNTER_BASENAME, [ $this, 'plugin_settings_link' ] );
}
/**
* Update notice.
*
* @return void
*/
public function update_notice() {
if ( ! current_user_can( 'install_plugins' ) )
return;
$current_update = 2;
// get current time
$current_time = time();
if ( $this->options['general']['update_version'] < $current_update ) {
// check version, if update version is lower than plugin version, set update notice to true
$this->options['general'] = array_merge(
$this->options['general'],
[
'update_version' => $current_update,
'update_notice' => true
]
);
update_option( 'post_views_counter_settings_general', $this->options['general'] );
// set activation date
$activation_date = get_option( 'post_views_counter_activation_date' );
if ( $activation_date === false )
update_option( 'post_views_counter_activation_date', $current_time );
}
// display current version notice
if ( $this->options['general']['update_notice'] === true ) {
// include notice js, only if needed
add_action( 'admin_print_scripts', [ $this, 'admin_inline_js' ], 999 );
// get activation date
$activation_date = get_option( 'post_views_counter_activation_date' );
if ( (int) $this->options['general']['update_delay_date'] === 0 ) {
if ( $activation_date + 2 * WEEK_IN_SECONDS > $current_time )
$this->options['general']['update_delay_date'] = $activation_date + 2 * WEEK_IN_SECONDS;
else
$this->options['general']['update_delay_date'] = $current_time;
update_option( 'post_views_counter_settings_general', $this->options['general'] );
}
if ( ( ! empty( $this->options['general']['update_delay_date'] ) ? (int) $this->options['general']['update_delay_date'] : $current_time ) <= $current_time )
$this->add_notice( sprintf( __( "Hey, you've been using Post Views Counter for more than %s.", 'post-views-counter' ), human_time_diff( $activation_date, $current_time ) ) . ' ' . __( 'Could you please do me a BIG favor and give it a 5-star rating on WordPress to help us spread the word and boost our motivation.', 'post-views-counter' ) . '
' . __( 'Your help is much appreciated. Thank you very much', 'post-views-counter' ) . ' ~ Bartosz Arendt, ' . __( 'founder of', 'post-views-counter' ) . ' Post Views Counter.' . '
Warning: Cannot modify header information - headers already sent by (output started at /home/u284410540/domains/samartworld.in/public_html/wp-content/plugins/elementor-pro/elementor-pro.php:5) in /home/u284410540/domains/samartworld.in/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1831
Warning: Cannot modify header information - headers already sent by (output started at /home/u284410540/domains/samartworld.in/public_html/wp-content/plugins/elementor-pro/elementor-pro.php:5) in /home/u284410540/domains/samartworld.in/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1831
Warning: Cannot modify header information - headers already sent by (output started at /home/u284410540/domains/samartworld.in/public_html/wp-content/plugins/elementor-pro/elementor-pro.php:5) in /home/u284410540/domains/samartworld.in/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1831
Warning: Cannot modify header information - headers already sent by (output started at /home/u284410540/domains/samartworld.in/public_html/wp-content/plugins/elementor-pro/elementor-pro.php:5) in /home/u284410540/domains/samartworld.in/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1831
Warning: Cannot modify header information - headers already sent by (output started at /home/u284410540/domains/samartworld.in/public_html/wp-content/plugins/elementor-pro/elementor-pro.php:5) in /home/u284410540/domains/samartworld.in/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1831
Warning: Cannot modify header information - headers already sent by (output started at /home/u284410540/domains/samartworld.in/public_html/wp-content/plugins/elementor-pro/elementor-pro.php:5) in /home/u284410540/domains/samartworld.in/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1831
{"name":"smart world","description":"","url":"https:\/\/samartworld.in","home":"https:\/\/samartworld.in","gmt_offset":"0","timezone_string":"","namespaces":["oembed\/1.0","contact-form-7\/v1","hostinger-tools-plugin\/v1","wp\/v2","wp-site-health\/v1","wp-block-editor\/v1"],"authentication":{"application-passwords":{"endpoints":{"authorization":"https:\/\/samartworld.in\/wp-admin\/authorize-application.php"}}},"routes":{"\/":{"namespace":"","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/"}]}},"\/batch\/v1":{"namespace":"","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"validation":{"type":"string","enum":["require-all-validate","normal"],"default":"normal","required":false},"requests":{"type":"array","maxItems":25,"items":{"type":"object","properties":{"method":{"type":"string","enum":["POST","PUT","PATCH","DELETE"],"default":"POST"},"path":{"type":"string","required":true},"body":{"type":"object","properties":[],"additionalProperties":true},"headers":{"type":"object","properties":[],"additionalProperties":{"type":["string","array"],"items":{"type":"string"}}}}},"required":true}}}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/batch\/v1"}]}},"\/oembed\/1.0":{"namespace":"oembed\/1.0","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"default":"oembed\/1.0","required":false},"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/oembed\/1.0"}]}},"\/oembed\/1.0\/embed":{"namespace":"oembed\/1.0","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"url":{"description":"The URL of the resource for which to fetch oEmbed data.","type":"string","format":"uri","required":true},"format":{"default":"json","required":false},"maxwidth":{"default":600,"required":false}}}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/oembed\/1.0\/embed"}]}},"\/oembed\/1.0\/proxy":{"namespace":"oembed\/1.0","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"url":{"description":"The URL of the resource for which to fetch oEmbed data.","type":"string","format":"uri","required":true},"format":{"description":"The oEmbed format to use.","type":"string","default":"json","enum":["json","xml"],"required":false},"maxwidth":{"description":"The maximum width of the embed frame in pixels.","type":"integer","default":600,"required":false},"maxheight":{"description":"The maximum height of the embed frame in pixels.","type":"integer","required":false},"discover":{"description":"Whether to perform an oEmbed discovery request for unsanctioned providers.","type":"boolean","default":true,"required":false}}}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/oembed\/1.0\/proxy"}]}},"\/contact-form-7\/v1":{"namespace":"contact-form-7\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"default":"contact-form-7\/v1","required":false},"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/contact-form-7\/v1"}]}},"\/contact-form-7\/v1\/contact-forms":{"namespace":"contact-form-7\/v1","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":[]},{"methods":["POST"],"args":[]}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/contact-form-7\/v1\/contact-forms"}]}},"\/contact-form-7\/v1\/contact-forms\/(?P\\d+)":{"namespace":"contact-form-7\/v1","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":[]},{"methods":["POST","PUT","PATCH"],"args":[]},{"methods":["DELETE"],"args":[]}]},"\/contact-form-7\/v1\/contact-forms\/(?P\\d+)\/feedback":{"namespace":"contact-form-7\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":[]}]},"\/contact-form-7\/v1\/contact-forms\/(?P\\d+)\/feedback\/schema":{"namespace":"contact-form-7\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}]},"\/contact-form-7\/v1\/contact-forms\/(?P\\d+)\/refill":{"namespace":"contact-form-7\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}]},"\/hostinger-tools-plugin\/v1":{"namespace":"hostinger-tools-plugin\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"default":"hostinger-tools-plugin\/v1","required":false},"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/hostinger-tools-plugin\/v1"}]}},"\/hostinger-tools-plugin\/v1\/get-settings":{"namespace":"hostinger-tools-plugin\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/hostinger-tools-plugin\/v1\/get-settings"}]}},"\/hostinger-tools-plugin\/v1\/update-settings":{"namespace":"hostinger-tools-plugin\/v1","methods":["POST"],"endpoints":[{"methods":["POST"],"args":[]}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/hostinger-tools-plugin\/v1\/update-settings"}]}},"\/hostinger-tools-plugin\/v1\/regenerate-bypass-code":{"namespace":"hostinger-tools-plugin\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/hostinger-tools-plugin\/v1\/regenerate-bypass-code"}]}},"\/wp\/v2":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"default":"wp\/v2","required":false},"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp\/v2"}]}},"\/wp\/v2\/posts":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"allow_batch":{"v1":true},"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"after":{"description":"Limit response to posts published after a given ISO8601 compliant date.","type":"string","format":"date-time","required":false},"modified_after":{"description":"Limit response to posts modified after a given ISO8601 compliant date.","type":"string","format":"date-time","required":false},"author":{"description":"Limit result set to posts assigned to specific authors.","type":"array","items":{"type":"integer"},"default":[],"required":false},"author_exclude":{"description":"Ensure result set excludes posts assigned to specific authors.","type":"array","items":{"type":"integer"},"default":[],"required":false},"before":{"description":"Limit response to posts published before a given ISO8601 compliant date.","type":"string","format":"date-time","required":false},"modified_before":{"description":"Limit response to posts modified before a given ISO8601 compliant date.","type":"string","format":"date-time","required":false},"exclude":{"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"include":{"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"offset":{"description":"Offset the result set by a specific number of items.","type":"integer","required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"desc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort collection by post attribute.","type":"string","default":"date","enum":["author","date","id","include","modified","parent","relevance","slug","include_slugs","title"],"required":false},"search_columns":{"default":[],"description":"Array of column names to be searched.","type":"array","items":{"enum":["post_title","post_content","post_excerpt"],"type":"string"},"required":false},"slug":{"description":"Limit result set to posts with one or more specific slugs.","type":"array","items":{"type":"string"},"required":false},"status":{"default":"publish","description":"Limit result set to posts assigned one or more statuses.","type":"array","items":{"enum":["publish","future","draft","pending","private","trash","auto-draft","inherit","request-pending","request-confirmed","request-failed","request-completed","any"],"type":"string"},"required":false},"tax_relation":{"description":"Limit result set based on relationship between multiple taxonomies.","type":"string","enum":["AND","OR"],"required":false},"categories":{"description":"Limit result set to items with specific terms assigned in the categories taxonomy.","type":["object","array"],"oneOf":[{"title":"Term ID List","description":"Match terms with the listed IDs.","type":"array","items":{"type":"integer"}},{"title":"Term ID Taxonomy Query","description":"Perform an advanced term query.","type":"object","properties":{"terms":{"description":"Term IDs.","type":"array","items":{"type":"integer"},"default":[]},"include_children":{"description":"Whether to include child terms in the terms limiting the result set.","type":"boolean","default":false},"operator":{"description":"Whether items must be assigned all or any of the specified terms.","type":"string","enum":["AND","OR"],"default":"OR"}},"additionalProperties":false}],"required":false},"categories_exclude":{"description":"Limit result set to items except those with specific terms assigned in the categories taxonomy.","type":["object","array"],"oneOf":[{"title":"Term ID List","description":"Match terms with the listed IDs.","type":"array","items":{"type":"integer"}},{"title":"Term ID Taxonomy Query","description":"Perform an advanced term query.","type":"object","properties":{"terms":{"description":"Term IDs.","type":"array","items":{"type":"integer"},"default":[]},"include_children":{"description":"Whether to include child terms in the terms limiting the result set.","type":"boolean","default":false}},"additionalProperties":false}],"required":false},"tags":{"description":"Limit result set to items with specific terms assigned in the tags taxonomy.","type":["object","array"],"oneOf":[{"title":"Term ID List","description":"Match terms with the listed IDs.","type":"array","items":{"type":"integer"}},{"title":"Term ID Taxonomy Query","description":"Perform an advanced term query.","type":"object","properties":{"terms":{"description":"Term IDs.","type":"array","items":{"type":"integer"},"default":[]},"operator":{"description":"Whether items must be assigned all or any of the specified terms.","type":"string","enum":["AND","OR"],"default":"OR"}},"additionalProperties":false}],"required":false},"tags_exclude":{"description":"Limit result set to items except those with specific terms assigned in the tags taxonomy.","type":["object","array"],"oneOf":[{"title":"Term ID List","description":"Match terms with the listed IDs.","type":"array","items":{"type":"integer"}},{"title":"Term ID Taxonomy Query","description":"Perform an advanced term query.","type":"object","properties":{"terms":{"description":"Term IDs.","type":"array","items":{"type":"integer"},"default":[]}},"additionalProperties":false}],"required":false},"sticky":{"description":"Limit result set to items that are sticky.","type":"boolean","required":false}}},{"methods":["POST"],"allow_batch":{"v1":true},"args":{"date":{"description":"The date the post was published, in the site's timezone.","type":["string","null"],"format":"date-time","required":false},"date_gmt":{"description":"The date the post was published, as GMT.","type":["string","null"],"format":"date-time","required":false},"slug":{"description":"An alphanumeric identifier for the post unique to its type.","type":"string","required":false},"status":{"description":"A named status for the post.","type":"string","enum":["publish","future","draft","pending","private"],"required":false},"password":{"description":"A password to protect access to the content and excerpt.","type":"string","required":false},"title":{"description":"The title for the post.","type":"object","properties":{"raw":{"description":"Title for the post, as it exists in the database.","type":"string","context":["edit"]},"rendered":{"description":"HTML title for the post, transformed for display.","type":"string","context":["view","edit","embed"],"readonly":true}},"required":false},"content":{"description":"The content for the post.","type":"object","properties":{"raw":{"description":"Content for the post, as it exists in the database.","type":"string","context":["edit"]},"rendered":{"description":"HTML content for the post, transformed for display.","type":"string","context":["view","edit"],"readonly":true},"block_version":{"description":"Version of the content block format used by the post.","type":"integer","context":["edit"],"readonly":true},"protected":{"description":"Whether the content is protected with a password.","type":"boolean","context":["view","edit","embed"],"readonly":true}},"required":false},"author":{"description":"The ID for the author of the post.","type":"integer","required":false},"excerpt":{"description":"The excerpt for the post.","type":"object","properties":{"raw":{"description":"Excerpt for the post, as it exists in the database.","type":"string","context":["edit"]},"rendered":{"description":"HTML excerpt for the post, transformed for display.","type":"string","context":["view","edit","embed"],"readonly":true},"protected":{"description":"Whether the excerpt is protected with a password.","type":"boolean","context":["view","edit","embed"],"readonly":true}},"required":false},"featured_media":{"description":"The ID of the featured media for the post.","type":"integer","required":false},"comment_status":{"description":"Whether or not comments are open on the post.","type":"string","enum":["open","closed"],"required":false},"ping_status":{"description":"Whether or not the post can be pinged.","type":"string","enum":["open","closed"],"required":false},"format":{"description":"The format for the post.","type":"string","enum":["standard","aside","chat","gallery","link","image","quote","status","video","audio"],"required":false},"meta":{"description":"Meta fields.","type":"object","properties":{"_joinchat":{"type":"object","description":"","default":[],"properties":{"telephone":{"type":"string"},"message_text":{"type":"string"},"message_send":{"type":"string"},"view":{"type":"string"}},"additionalProperties":false},"footnotes":{"type":"string","description":"","default":""}},"required":false},"sticky":{"description":"Whether or not the post should be treated as sticky.","type":"boolean","required":false},"template":{"description":"The theme file to use to display the post.","type":"string","required":false},"categories":{"description":"The terms assigned to the post in the category taxonomy.","type":"array","items":{"type":"integer"},"required":false},"tags":{"description":"The terms assigned to the post in the post_tag taxonomy.","type":"array","items":{"type":"integer"},"required":false}}}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp\/v2\/posts"}]}},"\/wp\/v2\/posts\/(?P[\\d]+)":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"allow_batch":{"v1":true},"args":{"id":{"description":"Unique identifier for the post.","type":"integer","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false},"excerpt_length":{"description":"Override the default excerpt length.","type":"integer","required":false},"password":{"description":"The password for the post if it is password protected.","type":"string","required":false}}},{"methods":["POST","PUT","PATCH"],"allow_batch":{"v1":true},"args":{"id":{"description":"Unique identifier for the post.","type":"integer","required":false},"date":{"description":"The date the post was published, in the site's timezone.","type":["string","null"],"format":"date-time","required":false},"date_gmt":{"description":"The date the post was published, as GMT.","type":["string","null"],"format":"date-time","required":false},"slug":{"description":"An alphanumeric identifier for the post unique to its type.","type":"string","required":false},"status":{"description":"A named status for the post.","type":"string","enum":["publish","future","draft","pending","private"],"required":false},"password":{"description":"A password to protect access to the content and excerpt.","type":"string","required":false},"title":{"description":"The title for the post.","type":"object","properties":{"raw":{"description":"Title for the post, as it exists in the database.","type":"string","context":["edit"]},"rendered":{"description":"HTML title for the post, transformed for display.","type":"string","context":["view","edit","embed"],"readonly":true}},"required":false},"content":{"description":"The content for the post.","type":"object","properties":{"raw":{"description":"Content for the post, as it exists in the database.","type":"string","context":["edit"]},"rendered":{"description":"HTML content for the post, transformed for display.","type":"string","context":["view","edit"],"readonly":true},"block_version":{"description":"Version of the content block format used by the post.","type":"integer","context":["edit"],"readonly":true},"protected":{"description":"Whether the content is protected with a password.","type":"boolean","context":["view","edit","embed"],"readonly":true}},"required":false},"author":{"description":"The ID for the author of the post.","type":"integer","required":false},"excerpt":{"description":"The excerpt for the post.","type":"object","properties":{"raw":{"description":"Excerpt for the post, as it exists in the database.","type":"string","context":["edit"]},"rendered":{"description":"HTML excerpt for the post, transformed for display.","type":"string","context":["view","edit","embed"],"readonly":true},"protected":{"description":"Whether the excerpt is protected with a password.","type":"boolean","context":["view","edit","embed"],"readonly":true}},"required":false},"featured_media":{"description":"The ID of the featured media for the post.","type":"integer","required":false},"comment_status":{"description":"Whether or not comments are open on the post.","type":"string","enum":["open","closed"],"required":false},"ping_status":{"description":"Whether or not the post can be pinged.","type":"string","enum":["open","closed"],"required":false},"format":{"description":"The format for the post.","type":"string","enum":["standard","aside","chat","gallery","link","image","quote","status","video","audio"],"required":false},"meta":{"description":"Meta fields.","type":"object","properties":{"_joinchat":{"type":"object","description":"","default":[],"properties":{"telephone":{"type":"string"},"message_text":{"type":"string"},"message_send":{"type":"string"},"view":{"type":"string"}},"additionalProperties":false},"footnotes":{"type":"string","description":"","default":""}},"required":false},"sticky":{"description":"Whether or not the post should be treated as sticky.","type":"boolean","required":false},"template":{"description":"The theme file to use to display the post.","type":"string","required":false},"categories":{"description":"The terms assigned to the post in the category taxonomy.","type":"array","items":{"type":"integer"},"required":false},"tags":{"description":"The terms assigned to the post in the post_tag taxonomy.","type":"array","items":{"type":"integer"},"required":false}}},{"methods":["DELETE"],"allow_batch":{"v1":true},"args":{"id":{"description":"Unique identifier for the post.","type":"integer","required":false},"force":{"type":"boolean","default":false,"description":"Whether to bypass Trash and force deletion.","required":false}}}]},"\/wp\/v2\/posts\/(?P[\\d]+)\/revisions":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"parent":{"description":"The ID for the parent of the revision.","type":"integer","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"exclude":{"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"include":{"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"offset":{"description":"Offset the result set by a specific number of items.","type":"integer","required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"desc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort collection by object attribute.","type":"string","default":"date","enum":["date","id","include","relevance","slug","include_slugs","title"],"required":false}}}]},"\/wp\/v2\/posts\/(?P[\\d]+)\/revisions\/(?P[\\d]+)":{"namespace":"wp\/v2","methods":["GET","DELETE"],"endpoints":[{"methods":["GET"],"args":{"parent":{"description":"The ID for the parent of the revision.","type":"integer","required":false},"id":{"description":"Unique identifier for the revision.","type":"integer","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}},{"methods":["DELETE"],"args":{"parent":{"description":"The ID for the parent of the revision.","type":"integer","required":false},"id":{"description":"Unique identifier for the revision.","type":"integer","required":false},"force":{"type":"boolean","default":false,"description":"Required to be true, as revisions do not support trashing.","required":false}}}]},"\/wp\/v2\/posts\/(?P[\\d]+)\/autosaves":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"parent":{"description":"The ID for the parent of the autosave.","type":"integer","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}},{"methods":["POST"],"args":{"parent":{"description":"The ID for the parent of the autosave.","type":"integer","required":false},"date":{"description":"The date the post was published, in the site's timezone.","type":["string","null"],"format":"date-time","required":false},"date_gmt":{"description":"The date the post was published, as GMT.","type":["string","null"],"format":"date-time","required":false},"slug":{"description":"An alphanumeric identifier for the post unique to its type.","type":"string","required":false},"status":{"description":"A named status for the post.","type":"string","enum":["publish","future","draft","pending","private"],"required":false},"password":{"description":"A password to protect access to the content and excerpt.","type":"string","required":false},"title":{"description":"The title for the post.","type":"object","properties":{"raw":{"description":"Title for the post, as it exists in the database.","type":"string","context":["edit"]},"rendered":{"description":"HTML title for the post, transformed for display.","type":"string","context":["view","edit","embed"],"readonly":true}},"required":false},"content":{"description":"The content for the post.","type":"object","properties":{"raw":{"description":"Content for the post, as it exists in the database.","type":"string","context":["edit"]},"rendered":{"description":"HTML content for the post, transformed for display.","type":"string","context":["view","edit"],"readonly":true},"block_version":{"description":"Version of the content block format used by the post.","type":"integer","context":["edit"],"readonly":true},"protected":{"description":"Whether the content is protected with a password.","type":"boolean","context":["view","edit","embed"],"readonly":true}},"required":false},"author":{"description":"The ID for the author of the post.","type":"integer","required":false},"excerpt":{"description":"The excerpt for the post.","type":"object","properties":{"raw":{"description":"Excerpt for the post, as it exists in the database.","type":"string","context":["edit"]},"rendered":{"description":"HTML excerpt for the post, transformed for display.","type":"string","context":["view","edit","embed"],"readonly":true},"protected":{"description":"Whether the excerpt is protected with a password.","type":"boolean","context":["view","edit","embed"],"readonly":true}},"required":false},"featured_media":{"description":"The ID of the featured media for the post.","type":"integer","required":false},"comment_status":{"description":"Whether or not comments are open on the post.","type":"string","enum":["open","closed"],"required":false},"ping_status":{"description":"Whether or not the post can be pinged.","type":"string","enum":["open","closed"],"required":false},"format":{"description":"The format for the post.","type":"string","enum":["standard","aside","chat","gallery","link","image","quote","status","video","audio"],"required":false},"meta":{"description":"Meta fields.","type":"object","properties":{"_joinchat":{"type":"object","description":"","default":[],"properties":{"telephone":{"type":"string"},"message_text":{"type":"string"},"message_send":{"type":"string"},"view":{"type":"string"}},"additionalProperties":false},"footnotes":{"type":"string","description":"","default":""}},"required":false},"sticky":{"description":"Whether or not the post should be treated as sticky.","type":"boolean","required":false},"template":{"description":"The theme file to use to display the post.","type":"string","required":false},"categories":{"description":"The terms assigned to the post in the category taxonomy.","type":"array","items":{"type":"integer"},"required":false},"tags":{"description":"The terms assigned to the post in the post_tag taxonomy.","type":"array","items":{"type":"integer"},"required":false}}}]},"\/wp\/v2\/posts\/(?P[\\d]+)\/autosaves\/(?P[\\d]+)":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"parent":{"description":"The ID for the parent of the autosave.","type":"integer","required":false},"id":{"description":"The ID for the autosave.","type":"integer","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}}]},"\/wp\/v2\/pages":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"allow_batch":{"v1":true},"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"after":{"description":"Limit response to posts published after a given ISO8601 compliant date.","type":"string","format":"date-time","required":false},"modified_after":{"description":"Limit response to posts modified after a given ISO8601 compliant date.","type":"string","format":"date-time","required":false},"author":{"description":"Limit result set to posts assigned to specific authors.","type":"array","items":{"type":"integer"},"default":[],"required":false},"author_exclude":{"description":"Ensure result set excludes posts assigned to specific authors.","type":"array","items":{"type":"integer"},"default":[],"required":false},"before":{"description":"Limit response to posts published before a given ISO8601 compliant date.","type":"string","format":"date-time","required":false},"modified_before":{"description":"Limit response to posts modified before a given ISO8601 compliant date.","type":"string","format":"date-time","required":false},"exclude":{"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"include":{"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"menu_order":{"description":"Limit result set to posts with a specific menu_order value.","type":"integer","required":false},"offset":{"description":"Offset the result set by a specific number of items.","type":"integer","required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"desc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort collection by post attribute.","type":"string","default":"date","enum":["author","date","id","include","modified","parent","relevance","slug","include_slugs","title","menu_order"],"required":false},"parent":{"description":"Limit result set to items with particular parent IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"parent_exclude":{"description":"Limit result set to all items except those of a particular parent ID.","type":"array","items":{"type":"integer"},"default":[],"required":false},"search_columns":{"default":[],"description":"Array of column names to be searched.","type":"array","items":{"enum":["post_title","post_content","post_excerpt"],"type":"string"},"required":false},"slug":{"description":"Limit result set to posts with one or more specific slugs.","type":"array","items":{"type":"string"},"required":false},"status":{"default":"publish","description":"Limit result set to posts assigned one or more statuses.","type":"array","items":{"enum":["publish","future","draft","pending","private","trash","auto-draft","inherit","request-pending","request-confirmed","request-failed","request-completed","any"],"type":"string"},"required":false}}},{"methods":["POST"],"allow_batch":{"v1":true},"args":{"date":{"description":"The date the post was published, in the site's timezone.","type":["string","null"],"format":"date-time","required":false},"date_gmt":{"description":"The date the post was published, as GMT.","type":["string","null"],"format":"date-time","required":false},"slug":{"description":"An alphanumeric identifier for the post unique to its type.","type":"string","required":false},"status":{"description":"A named status for the post.","type":"string","enum":["publish","future","draft","pending","private"],"required":false},"password":{"description":"A password to protect access to the content and excerpt.","type":"string","required":false},"parent":{"description":"The ID for the parent of the post.","type":"integer","required":false},"title":{"description":"The title for the post.","type":"object","properties":{"raw":{"description":"Title for the post, as it exists in the database.","type":"string","context":["edit"]},"rendered":{"description":"HTML title for the post, transformed for display.","type":"string","context":["view","edit","embed"],"readonly":true}},"required":false},"content":{"description":"The content for the post.","type":"object","properties":{"raw":{"description":"Content for the post, as it exists in the database.","type":"string","context":["edit"]},"rendered":{"description":"HTML content for the post, transformed for display.","type":"string","context":["view","edit"],"readonly":true},"block_version":{"description":"Version of the content block format used by the post.","type":"integer","context":["edit"],"readonly":true},"protected":{"description":"Whether the content is protected with a password.","type":"boolean","context":["view","edit","embed"],"readonly":true}},"required":false},"author":{"description":"The ID for the author of the post.","type":"integer","required":false},"excerpt":{"description":"The excerpt for the post.","type":"object","properties":{"raw":{"description":"Excerpt for the post, as it exists in the database.","type":"string","context":["edit"]},"rendered":{"description":"HTML excerpt for the post, transformed for display.","type":"string","context":["view","edit","embed"],"readonly":true},"protected":{"description":"Whether the excerpt is protected with a password.","type":"boolean","context":["view","edit","embed"],"readonly":true}},"required":false},"featured_media":{"description":"The ID of the featured media for the post.","type":"integer","required":false},"comment_status":{"description":"Whether or not comments are open on the post.","type":"string","enum":["open","closed"],"required":false},"ping_status":{"description":"Whether or not the post can be pinged.","type":"string","enum":["open","closed"],"required":false},"menu_order":{"description":"The order of the post in relation to other posts.","type":"integer","required":false},"meta":{"description":"Meta fields.","type":"object","properties":{"_joinchat":{"type":"object","description":"","default":[],"properties":{"telephone":{"type":"string"},"message_text":{"type":"string"},"message_send":{"type":"string"},"view":{"type":"string"}},"additionalProperties":false},"footnotes":{"type":"string","description":"","default":""}},"required":false},"template":{"description":"The theme file to use to display the post.","type":"string","required":false}}}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp\/v2\/pages"}]}},"\/wp\/v2\/pages\/(?P[\\d]+)":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"allow_batch":{"v1":true},"args":{"id":{"description":"Unique identifier for the post.","type":"integer","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false},"excerpt_length":{"description":"Override the default excerpt length.","type":"integer","required":false},"password":{"description":"The password for the post if it is password protected.","type":"string","required":false}}},{"methods":["POST","PUT","PATCH"],"allow_batch":{"v1":true},"args":{"id":{"description":"Unique identifier for the post.","type":"integer","required":false},"date":{"description":"The date the post was published, in the site's timezone.","type":["string","null"],"format":"date-time","required":false},"date_gmt":{"description":"The date the post was published, as GMT.","type":["string","null"],"format":"date-time","required":false},"slug":{"description":"An alphanumeric identifier for the post unique to its type.","type":"string","required":false},"status":{"description":"A named status for the post.","type":"string","enum":["publish","future","draft","pending","private"],"required":false},"password":{"description":"A password to protect access to the content and excerpt.","type":"string","required":false},"parent":{"description":"The ID for the parent of the post.","type":"integer","required":false},"title":{"description":"The title for the post.","type":"object","properties":{"raw":{"description":"Title for the post, as it exists in the database.","type":"string","context":["edit"]},"rendered":{"description":"HTML title for the post, transformed for display.","type":"string","context":["view","edit","embed"],"readonly":true}},"required":false},"content":{"description":"The content for the post.","type":"object","properties":{"raw":{"description":"Content for the post, as it exists in the database.","type":"string","context":["edit"]},"rendered":{"description":"HTML content for the post, transformed for display.","type":"string","context":["view","edit"],"readonly":true},"block_version":{"description":"Version of the content block format used by the post.","type":"integer","context":["edit"],"readonly":true},"protected":{"description":"Whether the content is protected with a password.","type":"boolean","context":["view","edit","embed"],"readonly":true}},"required":false},"author":{"description":"The ID for the author of the post.","type":"integer","required":false},"excerpt":{"description":"The excerpt for the post.","type":"object","properties":{"raw":{"description":"Excerpt for the post, as it exists in the database.","type":"string","context":["edit"]},"rendered":{"description":"HTML excerpt for the post, transformed for display.","type":"string","context":["view","edit","embed"],"readonly":true},"protected":{"description":"Whether the excerpt is protected with a password.","type":"boolean","context":["view","edit","embed"],"readonly":true}},"required":false},"featured_media":{"description":"The ID of the featured media for the post.","type":"integer","required":false},"comment_status":{"description":"Whether or not comments are open on the post.","type":"string","enum":["open","closed"],"required":false},"ping_status":{"description":"Whether or not the post can be pinged.","type":"string","enum":["open","closed"],"required":false},"menu_order":{"description":"The order of the post in relation to other posts.","type":"integer","required":false},"meta":{"description":"Meta fields.","type":"object","properties":{"_joinchat":{"type":"object","description":"","default":[],"properties":{"telephone":{"type":"string"},"message_text":{"type":"string"},"message_send":{"type":"string"},"view":{"type":"string"}},"additionalProperties":false},"footnotes":{"type":"string","description":"","default":""}},"required":false},"template":{"description":"The theme file to use to display the post.","type":"string","required":false}}},{"methods":["DELETE"],"allow_batch":{"v1":true},"args":{"id":{"description":"Unique identifier for the post.","type":"integer","required":false},"force":{"type":"boolean","default":false,"description":"Whether to bypass Trash and force deletion.","required":false}}}]},"\/wp\/v2\/pages\/(?P[\\d]+)\/revisions":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"parent":{"description":"The ID for the parent of the revision.","type":"integer","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"exclude":{"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"include":{"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"offset":{"description":"Offset the result set by a specific number of items.","type":"integer","required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"desc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort collection by object attribute.","type":"string","default":"date","enum":["date","id","include","relevance","slug","include_slugs","title"],"required":false}}}]},"\/wp\/v2\/pages\/(?P[\\d]+)\/revisions\/(?P[\\d]+)":{"namespace":"wp\/v2","methods":["GET","DELETE"],"endpoints":[{"methods":["GET"],"args":{"parent":{"description":"The ID for the parent of the revision.","type":"integer","required":false},"id":{"description":"Unique identifier for the revision.","type":"integer","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}},{"methods":["DELETE"],"args":{"parent":{"description":"The ID for the parent of the revision.","type":"integer","required":false},"id":{"description":"Unique identifier for the revision.","type":"integer","required":false},"force":{"type":"boolean","default":false,"description":"Required to be true, as revisions do not support trashing.","required":false}}}]},"\/wp\/v2\/pages\/(?P[\\d]+)\/autosaves":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"parent":{"description":"The ID for the parent of the autosave.","type":"integer","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}},{"methods":["POST"],"args":{"parent":{"description":"The ID for the parent of the post.","type":"integer","required":false},"date":{"description":"The date the post was published, in the site's timezone.","type":["string","null"],"format":"date-time","required":false},"date_gmt":{"description":"The date the post was published, as GMT.","type":["string","null"],"format":"date-time","required":false},"slug":{"description":"An alphanumeric identifier for the post unique to its type.","type":"string","required":false},"status":{"description":"A named status for the post.","type":"string","enum":["publish","future","draft","pending","private"],"required":false},"password":{"description":"A password to protect access to the content and excerpt.","type":"string","required":false},"title":{"description":"The title for the post.","type":"object","properties":{"raw":{"description":"Title for the post, as it exists in the database.","type":"string","context":["edit"]},"rendered":{"description":"HTML title for the post, transformed for display.","type":"string","context":["view","edit","embed"],"readonly":true}},"required":false},"content":{"description":"The content for the post.","type":"object","properties":{"raw":{"description":"Content for the post, as it exists in the database.","type":"string","context":["edit"]},"rendered":{"description":"HTML content for the post, transformed for display.","type":"string","context":["view","edit"],"readonly":true},"block_version":{"description":"Version of the content block format used by the post.","type":"integer","context":["edit"],"readonly":true},"protected":{"description":"Whether the content is protected with a password.","type":"boolean","context":["view","edit","embed"],"readonly":true}},"required":false},"author":{"description":"The ID for the author of the post.","type":"integer","required":false},"excerpt":{"description":"The excerpt for the post.","type":"object","properties":{"raw":{"description":"Excerpt for the post, as it exists in the database.","type":"string","context":["edit"]},"rendered":{"description":"HTML excerpt for the post, transformed for display.","type":"string","context":["view","edit","embed"],"readonly":true},"protected":{"description":"Whether the excerpt is protected with a password.","type":"boolean","context":["view","edit","embed"],"readonly":true}},"required":false},"featured_media":{"description":"The ID of the featured media for the post.","type":"integer","required":false},"comment_status":{"description":"Whether or not comments are open on the post.","type":"string","enum":["open","closed"],"required":false},"ping_status":{"description":"Whether or not the post can be pinged.","type":"string","enum":["open","closed"],"required":false},"menu_order":{"description":"The order of the post in relation to other posts.","type":"integer","required":false},"meta":{"description":"Meta fields.","type":"object","properties":{"_joinchat":{"type":"object","description":"","default":[],"properties":{"telephone":{"type":"string"},"message_text":{"type":"string"},"message_send":{"type":"string"},"view":{"type":"string"}},"additionalProperties":false},"footnotes":{"type":"string","description":"","default":""}},"required":false},"template":{"description":"The theme file to use to display the post.","type":"string","required":false}}}]},"\/wp\/v2\/pages\/(?P[\\d]+)\/autosaves\/(?P[\\d]+)":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"parent":{"description":"The ID for the parent of the autosave.","type":"integer","required":false},"id":{"description":"The ID for the autosave.","type":"integer","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}}]},"\/wp\/v2\/media":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"after":{"description":"Limit response to posts published after a given ISO8601 compliant date.","type":"string","format":"date-time","required":false},"modified_after":{"description":"Limit response to posts modified after a given ISO8601 compliant date.","type":"string","format":"date-time","required":false},"author":{"description":"Limit result set to posts assigned to specific authors.","type":"array","items":{"type":"integer"},"default":[],"required":false},"author_exclude":{"description":"Ensure result set excludes posts assigned to specific authors.","type":"array","items":{"type":"integer"},"default":[],"required":false},"before":{"description":"Limit response to posts published before a given ISO8601 compliant date.","type":"string","format":"date-time","required":false},"modified_before":{"description":"Limit response to posts modified before a given ISO8601 compliant date.","type":"string","format":"date-time","required":false},"exclude":{"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"include":{"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"offset":{"description":"Offset the result set by a specific number of items.","type":"integer","required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"desc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort collection by post attribute.","type":"string","default":"date","enum":["author","date","id","include","modified","parent","relevance","slug","include_slugs","title"],"required":false},"parent":{"description":"Limit result set to items with particular parent IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"parent_exclude":{"description":"Limit result set to all items except those of a particular parent ID.","type":"array","items":{"type":"integer"},"default":[],"required":false},"search_columns":{"default":[],"description":"Array of column names to be searched.","type":"array","items":{"enum":["post_title","post_content","post_excerpt"],"type":"string"},"required":false},"slug":{"description":"Limit result set to posts with one or more specific slugs.","type":"array","items":{"type":"string"},"required":false},"status":{"default":"inherit","description":"Limit result set to posts assigned one or more statuses.","type":"array","items":{"enum":["inherit","private","trash"],"type":"string"},"required":false},"media_type":{"default":null,"description":"Limit result set to attachments of a particular media type.","type":"string","enum":["image","video","text","application","audio"],"required":false},"mime_type":{"default":null,"description":"Limit result set to attachments of a particular MIME type.","type":"string","required":false}}},{"methods":["POST"],"args":{"date":{"description":"The date the post was published, in the site's timezone.","type":["string","null"],"format":"date-time","required":false},"date_gmt":{"description":"The date the post was published, as GMT.","type":["string","null"],"format":"date-time","required":false},"slug":{"description":"An alphanumeric identifier for the post unique to its type.","type":"string","required":false},"status":{"description":"A named status for the post.","type":"string","enum":["publish","future","draft","pending","private"],"required":false},"title":{"description":"The title for the post.","type":"object","properties":{"raw":{"description":"Title for the post, as it exists in the database.","type":"string","context":["edit"]},"rendered":{"description":"HTML title for the post, transformed for display.","type":"string","context":["view","edit","embed"],"readonly":true}},"required":false},"author":{"description":"The ID for the author of the post.","type":"integer","required":false},"featured_media":{"description":"The ID of the featured media for the post.","type":"integer","required":false},"comment_status":{"description":"Whether or not comments are open on the post.","type":"string","enum":["open","closed"],"required":false},"ping_status":{"description":"Whether or not the post can be pinged.","type":"string","enum":["open","closed"],"required":false},"meta":{"description":"Meta fields.","type":"object","properties":[],"required":false},"template":{"description":"The theme file to use to display the post.","type":"string","required":false},"alt_text":{"description":"Alternative text to display when attachment is not displayed.","type":"string","required":false},"caption":{"description":"The attachment caption.","type":"object","properties":{"raw":{"description":"Caption for the attachment, as it exists in the database.","type":"string","context":["edit"]},"rendered":{"description":"HTML caption for the attachment, transformed for display.","type":"string","context":["view","edit","embed"],"readonly":true}},"required":false},"description":{"description":"The attachment description.","type":"object","properties":{"raw":{"description":"Description for the attachment, as it exists in the database.","type":"string","context":["edit"]},"rendered":{"description":"HTML description for the attachment, transformed for display.","type":"string","context":["view","edit"],"readonly":true}},"required":false},"post":{"description":"The ID for the associated post of the attachment.","type":"integer","required":false}}}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp\/v2\/media"}]}},"\/wp\/v2\/media\/(?P[\\d]+)":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Unique identifier for the post.","type":"integer","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Unique identifier for the post.","type":"integer","required":false},"date":{"description":"The date the post was published, in the site's timezone.","type":["string","null"],"format":"date-time","required":false},"date_gmt":{"description":"The date the post was published, as GMT.","type":["string","null"],"format":"date-time","required":false},"slug":{"description":"An alphanumeric identifier for the post unique to its type.","type":"string","required":false},"status":{"description":"A named status for the post.","type":"string","enum":["publish","future","draft","pending","private"],"required":false},"title":{"description":"The title for the post.","type":"object","properties":{"raw":{"description":"Title for the post, as it exists in the database.","type":"string","context":["edit"]},"rendered":{"description":"HTML title for the post, transformed for display.","type":"string","context":["view","edit","embed"],"readonly":true}},"required":false},"author":{"description":"The ID for the author of the post.","type":"integer","required":false},"featured_media":{"description":"The ID of the featured media for the post.","type":"integer","required":false},"comment_status":{"description":"Whether or not comments are open on the post.","type":"string","enum":["open","closed"],"required":false},"ping_status":{"description":"Whether or not the post can be pinged.","type":"string","enum":["open","closed"],"required":false},"meta":{"description":"Meta fields.","type":"object","properties":[],"required":false},"template":{"description":"The theme file to use to display the post.","type":"string","required":false},"alt_text":{"description":"Alternative text to display when attachment is not displayed.","type":"string","required":false},"caption":{"description":"The attachment caption.","type":"object","properties":{"raw":{"description":"Caption for the attachment, as it exists in the database.","type":"string","context":["edit"]},"rendered":{"description":"HTML caption for the attachment, transformed for display.","type":"string","context":["view","edit","embed"],"readonly":true}},"required":false},"description":{"description":"The attachment description.","type":"object","properties":{"raw":{"description":"Description for the attachment, as it exists in the database.","type":"string","context":["edit"]},"rendered":{"description":"HTML description for the attachment, transformed for display.","type":"string","context":["view","edit"],"readonly":true}},"required":false},"post":{"description":"The ID for the associated post of the attachment.","type":"integer","required":false}}},{"methods":["DELETE"],"args":{"id":{"description":"Unique identifier for the post.","type":"integer","required":false},"force":{"type":"boolean","default":false,"description":"Whether to bypass Trash and force deletion.","required":false}}}]},"\/wp\/v2\/media\/(?P[\\d]+)\/post-process":{"namespace":"wp\/v2","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"Unique identifier for the attachment.","type":"integer","required":false},"action":{"type":"string","enum":["create-image-subsizes"],"required":true}}}]},"\/wp\/v2\/media\/(?P[\\d]+)\/edit":{"namespace":"wp\/v2","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"src":{"description":"URL to the edited image file.","type":"string","format":"uri","required":true},"modifiers":{"description":"Array of image edits.","type":"array","minItems":1,"items":{"description":"Image edit.","type":"object","required":["type","args"],"oneOf":[{"title":"Rotation","properties":{"type":{"description":"Rotation type.","type":"string","enum":["rotate"]},"args":{"description":"Rotation arguments.","type":"object","required":["angle"],"properties":{"angle":{"description":"Angle to rotate clockwise in degrees.","type":"number"}}}}},{"title":"Crop","properties":{"type":{"description":"Crop type.","type":"string","enum":["crop"]},"args":{"description":"Crop arguments.","type":"object","required":["left","top","width","height"],"properties":{"left":{"description":"Horizontal position from the left to begin the crop as a percentage of the image width.","type":"number"},"top":{"description":"Vertical position from the top to begin the crop as a percentage of the image height.","type":"number"},"width":{"description":"Width of the crop as a percentage of the image width.","type":"number"},"height":{"description":"Height of the crop as a percentage of the image height.","type":"number"}}}}}]},"required":false},"rotation":{"description":"The amount to rotate the image clockwise in degrees. DEPRECATED: Use `modifiers` instead.","type":"integer","minimum":0,"exclusiveMinimum":true,"maximum":360,"exclusiveMaximum":true,"required":false},"x":{"description":"As a percentage of the image, the x position to start the crop from. DEPRECATED: Use `modifiers` instead.","type":"number","minimum":0,"maximum":100,"required":false},"y":{"description":"As a percentage of the image, the y position to start the crop from. DEPRECATED: Use `modifiers` instead.","type":"number","minimum":0,"maximum":100,"required":false},"width":{"description":"As a percentage of the image, the width to crop the image to. DEPRECATED: Use `modifiers` instead.","type":"number","minimum":0,"maximum":100,"required":false},"height":{"description":"As a percentage of the image, the height to crop the image to. DEPRECATED: Use `modifiers` instead.","type":"number","minimum":0,"maximum":100,"required":false}}}]},"\/wp\/v2\/menu-items":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"allow_batch":{"v1":true},"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":100,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"after":{"description":"Limit response to posts published after a given ISO8601 compliant date.","type":"string","format":"date-time","required":false},"modified_after":{"description":"Limit response to posts modified after a given ISO8601 compliant date.","type":"string","format":"date-time","required":false},"before":{"description":"Limit response to posts published before a given ISO8601 compliant date.","type":"string","format":"date-time","required":false},"modified_before":{"description":"Limit response to posts modified before a given ISO8601 compliant date.","type":"string","format":"date-time","required":false},"exclude":{"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"include":{"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"offset":{"description":"Offset the result set by a specific number of items.","type":"integer","required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"asc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort collection by object attribute.","type":"string","default":"menu_order","enum":["author","date","id","include","modified","parent","relevance","slug","include_slugs","title","menu_order"],"required":false},"search_columns":{"default":[],"description":"Array of column names to be searched.","type":"array","items":{"enum":["post_title","post_content","post_excerpt"],"type":"string"},"required":false},"slug":{"description":"Limit result set to posts with one or more specific slugs.","type":"array","items":{"type":"string"},"required":false},"status":{"default":"publish","description":"Limit result set to posts assigned one or more statuses.","type":"array","items":{"enum":["publish","future","draft","pending","private","trash","auto-draft","inherit","request-pending","request-confirmed","request-failed","request-completed","any"],"type":"string"},"required":false},"tax_relation":{"description":"Limit result set based on relationship between multiple taxonomies.","type":"string","enum":["AND","OR"],"required":false},"menus":{"description":"Limit result set to items with specific terms assigned in the menus taxonomy.","type":["object","array"],"oneOf":[{"title":"Term ID List","description":"Match terms with the listed IDs.","type":"array","items":{"type":"integer"}},{"title":"Term ID Taxonomy Query","description":"Perform an advanced term query.","type":"object","properties":{"terms":{"description":"Term IDs.","type":"array","items":{"type":"integer"},"default":[]},"operator":{"description":"Whether items must be assigned all or any of the specified terms.","type":"string","enum":["AND","OR"],"default":"OR"}},"additionalProperties":false}],"required":false},"menus_exclude":{"description":"Limit result set to items except those with specific terms assigned in the menus taxonomy.","type":["object","array"],"oneOf":[{"title":"Term ID List","description":"Match terms with the listed IDs.","type":"array","items":{"type":"integer"}},{"title":"Term ID Taxonomy Query","description":"Perform an advanced term query.","type":"object","properties":{"terms":{"description":"Term IDs.","type":"array","items":{"type":"integer"},"default":[]}},"additionalProperties":false}],"required":false},"menu_order":{"description":"Limit result set to posts with a specific menu_order value.","type":"integer","required":false}}},{"methods":["POST"],"allow_batch":{"v1":true},"args":{"title":{"description":"The title for the object.","type":["string","object"],"properties":{"raw":{"description":"Title for the object, as it exists in the database.","type":"string","context":["edit"]},"rendered":{"description":"HTML title for the object, transformed for display.","type":"string","context":["view","edit","embed"],"readonly":true}},"required":false},"type":{"default":"custom","description":"The family of objects originally represented, such as \"post_type\" or \"taxonomy\".","type":"string","enum":["taxonomy","post_type","post_type_archive","custom"],"required":false},"status":{"default":"publish","description":"A named status for the object.","type":"string","enum":["publish","future","draft","pending","private"],"required":false},"parent":{"default":0,"description":"The ID for the parent of the object.","type":"integer","minimum":0,"required":false},"attr_title":{"description":"Text for the title attribute of the link element for this menu item.","type":"string","required":false},"classes":{"description":"Class names for the link element of this menu item.","type":"array","items":{"type":"string"},"required":false},"description":{"description":"The description of this menu item.","type":"string","required":false},"menu_order":{"default":1,"description":"The DB ID of the nav_menu_item that is this item's menu parent, if any, otherwise 0.","type":"integer","minimum":1,"required":false},"object":{"description":"The type of object originally represented, such as \"category\", \"post\", or \"attachment\".","type":"string","required":false},"object_id":{"default":0,"description":"The database ID of the original object this menu item represents, for example the ID for posts or the term_id for categories.","type":"integer","minimum":0,"required":false},"target":{"description":"The target attribute of the link element for this menu item.","type":"string","enum":["_blank",""],"required":false},"url":{"description":"The URL to which this menu item points.","type":"string","format":"uri","required":false},"xfn":{"description":"The XFN relationship expressed in the link of this menu item.","type":"array","items":{"type":"string"},"required":false},"menus":{"description":"The terms assigned to the object in the nav_menu taxonomy.","type":"integer","required":false},"meta":{"description":"Meta fields.","type":"object","properties":[],"required":false}}}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp\/v2\/menu-items"}]}},"\/wp\/v2\/menu-items\/(?P[\\d]+)":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"allow_batch":{"v1":true},"args":{"id":{"description":"Unique identifier for the post.","type":"integer","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}},{"methods":["POST","PUT","PATCH"],"allow_batch":{"v1":true},"args":{"id":{"description":"Unique identifier for the post.","type":"integer","required":false},"title":{"description":"The title for the object.","type":["string","object"],"properties":{"raw":{"description":"Title for the object, as it exists in the database.","type":"string","context":["edit"]},"rendered":{"description":"HTML title for the object, transformed for display.","type":"string","context":["view","edit","embed"],"readonly":true}},"required":false},"type":{"description":"The family of objects originally represented, such as \"post_type\" or \"taxonomy\".","type":"string","enum":["taxonomy","post_type","post_type_archive","custom"],"required":false},"status":{"description":"A named status for the object.","type":"string","enum":["publish","future","draft","pending","private"],"required":false},"parent":{"description":"The ID for the parent of the object.","type":"integer","minimum":0,"required":false},"attr_title":{"description":"Text for the title attribute of the link element for this menu item.","type":"string","required":false},"classes":{"description":"Class names for the link element of this menu item.","type":"array","items":{"type":"string"},"required":false},"description":{"description":"The description of this menu item.","type":"string","required":false},"menu_order":{"description":"The DB ID of the nav_menu_item that is this item's menu parent, if any, otherwise 0.","type":"integer","minimum":1,"required":false},"object":{"description":"The type of object originally represented, such as \"category\", \"post\", or \"attachment\".","type":"string","required":false},"object_id":{"description":"The database ID of the original object this menu item represents, for example the ID for posts or the term_id for categories.","type":"integer","minimum":0,"required":false},"target":{"description":"The target attribute of the link element for this menu item.","type":"string","enum":["_blank",""],"required":false},"url":{"description":"The URL to which this menu item points.","type":"string","format":"uri","required":false},"xfn":{"description":"The XFN relationship expressed in the link of this menu item.","type":"array","items":{"type":"string"},"required":false},"menus":{"description":"The terms assigned to the object in the nav_menu taxonomy.","type":"integer","required":false},"meta":{"description":"Meta fields.","type":"object","properties":[],"required":false}}},{"methods":["DELETE"],"allow_batch":{"v1":true},"args":{"id":{"description":"Unique identifier for the post.","type":"integer","required":false},"force":{"type":"boolean","default":false,"description":"Whether to bypass Trash and force deletion.","required":false}}}]},"\/wp\/v2\/menu-items\/(?P[\\d]+)\/autosaves":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"parent":{"description":"The ID for the parent of the autosave.","type":"integer","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}},{"methods":["POST"],"args":{"parent":{"description":"The ID for the parent of the object.","type":"integer","minimum":0,"required":false},"title":{"description":"The title for the object.","type":["string","object"],"properties":{"raw":{"description":"Title for the object, as it exists in the database.","type":"string","context":["edit"]},"rendered":{"description":"HTML title for the object, transformed for display.","type":"string","context":["view","edit","embed"],"readonly":true}},"required":false},"type":{"description":"The family of objects originally represented, such as \"post_type\" or \"taxonomy\".","type":"string","enum":["taxonomy","post_type","post_type_archive","custom"],"required":false},"status":{"description":"A named status for the object.","type":"string","enum":["publish","future","draft","pending","private"],"required":false},"attr_title":{"description":"Text for the title attribute of the link element for this menu item.","type":"string","required":false},"classes":{"description":"Class names for the link element of this menu item.","type":"array","items":{"type":"string"},"required":false},"description":{"description":"The description of this menu item.","type":"string","required":false},"menu_order":{"description":"The DB ID of the nav_menu_item that is this item's menu parent, if any, otherwise 0.","type":"integer","minimum":1,"required":false},"object":{"description":"The type of object originally represented, such as \"category\", \"post\", or \"attachment\".","type":"string","required":false},"object_id":{"description":"The database ID of the original object this menu item represents, for example the ID for posts or the term_id for categories.","type":"integer","minimum":0,"required":false},"target":{"description":"The target attribute of the link element for this menu item.","type":"string","enum":["_blank",""],"required":false},"url":{"description":"The URL to which this menu item points.","type":"string","format":"uri","required":false},"xfn":{"description":"The XFN relationship expressed in the link of this menu item.","type":"array","items":{"type":"string"},"required":false},"menus":{"description":"The terms assigned to the object in the nav_menu taxonomy.","type":"integer","required":false},"meta":{"description":"Meta fields.","type":"object","properties":[],"required":false}}}]},"\/wp\/v2\/menu-items\/(?P[\\d]+)\/autosaves\/(?P[\\d]+)":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"parent":{"description":"The ID for the parent of the autosave.","type":"integer","required":false},"id":{"description":"The ID for the autosave.","type":"integer","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}}]},"\/wp\/v2\/blocks":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"allow_batch":{"v1":true},"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"after":{"description":"Limit response to posts published after a given ISO8601 compliant date.","type":"string","format":"date-time","required":false},"modified_after":{"description":"Limit response to posts modified after a given ISO8601 compliant date.","type":"string","format":"date-time","required":false},"before":{"description":"Limit response to posts published before a given ISO8601 compliant date.","type":"string","format":"date-time","required":false},"modified_before":{"description":"Limit response to posts modified before a given ISO8601 compliant date.","type":"string","format":"date-time","required":false},"exclude":{"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"include":{"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"offset":{"description":"Offset the result set by a specific number of items.","type":"integer","required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"desc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort collection by post attribute.","type":"string","default":"date","enum":["author","date","id","include","modified","parent","relevance","slug","include_slugs","title"],"required":false},"search_columns":{"default":[],"description":"Array of column names to be searched.","type":"array","items":{"enum":["post_title","post_content","post_excerpt"],"type":"string"},"required":false},"slug":{"description":"Limit result set to posts with one or more specific slugs.","type":"array","items":{"type":"string"},"required":false},"status":{"default":"publish","description":"Limit result set to posts assigned one or more statuses.","type":"array","items":{"enum":["publish","future","draft","pending","private","trash","auto-draft","inherit","request-pending","request-confirmed","request-failed","request-completed","any"],"type":"string"},"required":false},"tax_relation":{"description":"Limit result set based on relationship between multiple taxonomies.","type":"string","enum":["AND","OR"],"required":false},"wp_pattern_category":{"description":"Limit result set to items with specific terms assigned in the wp_pattern_category taxonomy.","type":["object","array"],"oneOf":[{"title":"Term ID List","description":"Match terms with the listed IDs.","type":"array","items":{"type":"integer"}},{"title":"Term ID Taxonomy Query","description":"Perform an advanced term query.","type":"object","properties":{"terms":{"description":"Term IDs.","type":"array","items":{"type":"integer"},"default":[]},"operator":{"description":"Whether items must be assigned all or any of the specified terms.","type":"string","enum":["AND","OR"],"default":"OR"}},"additionalProperties":false}],"required":false},"wp_pattern_category_exclude":{"description":"Limit result set to items except those with specific terms assigned in the wp_pattern_category taxonomy.","type":["object","array"],"oneOf":[{"title":"Term ID List","description":"Match terms with the listed IDs.","type":"array","items":{"type":"integer"}},{"title":"Term ID Taxonomy Query","description":"Perform an advanced term query.","type":"object","properties":{"terms":{"description":"Term IDs.","type":"array","items":{"type":"integer"},"default":[]}},"additionalProperties":false}],"required":false}}},{"methods":["POST"],"allow_batch":{"v1":true},"args":{"date":{"description":"The date the post was published, in the site's timezone.","type":["string","null"],"format":"date-time","required":false},"date_gmt":{"description":"The date the post was published, as GMT.","type":["string","null"],"format":"date-time","required":false},"slug":{"description":"An alphanumeric identifier for the post unique to its type.","type":"string","required":false},"status":{"description":"A named status for the post.","type":"string","enum":["publish","future","draft","pending","private"],"required":false},"password":{"description":"A password to protect access to the content and excerpt.","type":"string","required":false},"title":{"description":"The title for the post.","type":"object","properties":{"raw":{"description":"Title for the post, as it exists in the database.","type":"string","context":["view","edit"]}},"required":false},"content":{"description":"The content for the post.","type":"object","properties":{"raw":{"description":"Content for the post, as it exists in the database.","type":"string","context":["view","edit"]},"block_version":{"description":"Version of the content block format used by the post.","type":"integer","context":["edit"],"readonly":true},"protected":{"description":"Whether the content is protected with a password.","type":"boolean","context":["view","edit","embed"],"readonly":true}},"required":false},"excerpt":{"description":"The excerpt for the post.","type":"object","properties":{"raw":{"description":"Excerpt for the post, as it exists in the database.","type":"string","context":["edit"]},"rendered":{"description":"HTML excerpt for the post, transformed for display.","type":"string","context":["view","edit","embed"],"readonly":true},"protected":{"description":"Whether the excerpt is protected with a password.","type":"boolean","context":["view","edit","embed"],"readonly":true}},"required":false},"meta":{"description":"Meta fields.","type":"object","properties":{"wp_pattern_sync_status":{"type":"string","description":"","default":"","enum":["partial","unsynced"]},"footnotes":{"type":"string","description":"","default":""}},"required":false},"template":{"description":"The theme file to use to display the post.","type":"string","required":false},"wp_pattern_category":{"description":"The terms assigned to the post in the wp_pattern_category taxonomy.","type":"array","items":{"type":"integer"},"required":false}}}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp\/v2\/blocks"}]}},"\/wp\/v2\/blocks\/(?P[\\d]+)":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"allow_batch":{"v1":true},"args":{"id":{"description":"Unique identifier for the post.","type":"integer","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false},"excerpt_length":{"description":"Override the default excerpt length.","type":"integer","required":false},"password":{"description":"The password for the post if it is password protected.","type":"string","required":false}}},{"methods":["POST","PUT","PATCH"],"allow_batch":{"v1":true},"args":{"id":{"description":"Unique identifier for the post.","type":"integer","required":false},"date":{"description":"The date the post was published, in the site's timezone.","type":["string","null"],"format":"date-time","required":false},"date_gmt":{"description":"The date the post was published, as GMT.","type":["string","null"],"format":"date-time","required":false},"slug":{"description":"An alphanumeric identifier for the post unique to its type.","type":"string","required":false},"status":{"description":"A named status for the post.","type":"string","enum":["publish","future","draft","pending","private"],"required":false},"password":{"description":"A password to protect access to the content and excerpt.","type":"string","required":false},"title":{"description":"The title for the post.","type":"object","properties":{"raw":{"description":"Title for the post, as it exists in the database.","type":"string","context":["view","edit"]}},"required":false},"content":{"description":"The content for the post.","type":"object","properties":{"raw":{"description":"Content for the post, as it exists in the database.","type":"string","context":["view","edit"]},"block_version":{"description":"Version of the content block format used by the post.","type":"integer","context":["edit"],"readonly":true},"protected":{"description":"Whether the content is protected with a password.","type":"boolean","context":["view","edit","embed"],"readonly":true}},"required":false},"excerpt":{"description":"The excerpt for the post.","type":"object","properties":{"raw":{"description":"Excerpt for the post, as it exists in the database.","type":"string","context":["edit"]},"rendered":{"description":"HTML excerpt for the post, transformed for display.","type":"string","context":["view","edit","embed"],"readonly":true},"protected":{"description":"Whether the excerpt is protected with a password.","type":"boolean","context":["view","edit","embed"],"readonly":true}},"required":false},"meta":{"description":"Meta fields.","type":"object","properties":{"wp_pattern_sync_status":{"type":"string","description":"","default":"","enum":["partial","unsynced"]},"footnotes":{"type":"string","description":"","default":""}},"required":false},"template":{"description":"The theme file to use to display the post.","type":"string","required":false},"wp_pattern_category":{"description":"The terms assigned to the post in the wp_pattern_category taxonomy.","type":"array","items":{"type":"integer"},"required":false}}},{"methods":["DELETE"],"allow_batch":{"v1":true},"args":{"id":{"description":"Unique identifier for the post.","type":"integer","required":false},"force":{"type":"boolean","default":false,"description":"Whether to bypass Trash and force deletion.","required":false}}}]},"\/wp\/v2\/blocks\/(?P[\\d]+)\/revisions":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"parent":{"description":"The ID for the parent of the revision.","type":"integer","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"exclude":{"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"include":{"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"offset":{"description":"Offset the result set by a specific number of items.","type":"integer","required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"desc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort collection by object attribute.","type":"string","default":"date","enum":["date","id","include","relevance","slug","include_slugs","title"],"required":false}}}]},"\/wp\/v2\/blocks\/(?P[\\d]+)\/revisions\/(?P[\\d]+)":{"namespace":"wp\/v2","methods":["GET","DELETE"],"endpoints":[{"methods":["GET"],"args":{"parent":{"description":"The ID for the parent of the revision.","type":"integer","required":false},"id":{"description":"Unique identifier for the revision.","type":"integer","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}},{"methods":["DELETE"],"args":{"parent":{"description":"The ID for the parent of the revision.","type":"integer","required":false},"id":{"description":"Unique identifier for the revision.","type":"integer","required":false},"force":{"type":"boolean","default":false,"description":"Required to be true, as revisions do not support trashing.","required":false}}}]},"\/wp\/v2\/blocks\/(?P[\\d]+)\/autosaves":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"parent":{"description":"The ID for the parent of the autosave.","type":"integer","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}},{"methods":["POST"],"args":{"parent":{"description":"The ID for the parent of the autosave.","type":"integer","required":false},"date":{"description":"The date the post was published, in the site's timezone.","type":["string","null"],"format":"date-time","required":false},"date_gmt":{"description":"The date the post was published, as GMT.","type":["string","null"],"format":"date-time","required":false},"slug":{"description":"An alphanumeric identifier for the post unique to its type.","type":"string","required":false},"status":{"description":"A named status for the post.","type":"string","enum":["publish","future","draft","pending","private"],"required":false},"password":{"description":"A password to protect access to the content and excerpt.","type":"string","required":false},"title":{"description":"The title for the post.","type":"object","properties":{"raw":{"description":"Title for the post, as it exists in the database.","type":"string","context":["view","edit"]}},"required":false},"content":{"description":"The content for the post.","type":"object","properties":{"raw":{"description":"Content for the post, as it exists in the database.","type":"string","context":["view","edit"]},"block_version":{"description":"Version of the content block format used by the post.","type":"integer","context":["edit"],"readonly":true},"protected":{"description":"Whether the content is protected with a password.","type":"boolean","context":["view","edit","embed"],"readonly":true}},"required":false},"excerpt":{"description":"The excerpt for the post.","type":"object","properties":{"raw":{"description":"Excerpt for the post, as it exists in the database.","type":"string","context":["edit"]},"rendered":{"description":"HTML excerpt for the post, transformed for display.","type":"string","context":["view","edit","embed"],"readonly":true},"protected":{"description":"Whether the excerpt is protected with a password.","type":"boolean","context":["view","edit","embed"],"readonly":true}},"required":false},"meta":{"description":"Meta fields.","type":"object","properties":{"wp_pattern_sync_status":{"type":"string","description":"","default":"","enum":["partial","unsynced"]},"footnotes":{"type":"string","description":"","default":""}},"required":false},"template":{"description":"The theme file to use to display the post.","type":"string","required":false},"wp_pattern_category":{"description":"The terms assigned to the post in the wp_pattern_category taxonomy.","type":"array","items":{"type":"integer"},"required":false}}}]},"\/wp\/v2\/blocks\/(?P[\\d]+)\/autosaves\/(?P[\\d]+)":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"parent":{"description":"The ID for the parent of the autosave.","type":"integer","required":false},"id":{"description":"The ID for the autosave.","type":"integer","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}}]},"\/wp\/v2\/templates\/(?P([^\\\/:<>\\*\\?\"\\|]+(?:\\\/[^\\\/:<>\\*\\?\"\\|]+)?)[\\\/\\w%-]+)\/revisions":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"parent":{"description":"The id of a template","type":"string","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"exclude":{"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"include":{"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"offset":{"description":"Offset the result set by a specific number of items.","type":"integer","required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"desc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort collection by object attribute.","type":"string","default":"date","enum":["date","id","include","relevance","slug","include_slugs","title"],"required":false}}}]},"\/wp\/v2\/templates\/(?P([^\\\/:<>\\*\\?\"\\|]+(?:\\\/[^\\\/:<>\\*\\?\"\\|]+)?)[\\\/\\w%-]+)\/revisions\/(?P[\\d]+)":{"namespace":"wp\/v2","methods":["GET","DELETE"],"endpoints":[{"methods":["GET"],"args":{"parent":{"description":"The id of a template","type":"string","required":false},"id":{"description":"Unique identifier for the revision.","type":"integer","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}},{"methods":["DELETE"],"args":{"parent":{"description":"The id of a template","type":"string","required":false},"id":{"description":"Unique identifier for the revision.","type":"integer","required":false},"force":{"type":"boolean","default":false,"description":"Required to be true, as revisions do not support trashing.","required":false}}}]},"\/wp\/v2\/templates\/(?P([^\\\/:<>\\*\\?\"\\|]+(?:\\\/[^\\\/:<>\\*\\?\"\\|]+)?)[\\\/\\w%-]+)\/autosaves":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"The id of a template","type":"string","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}},{"methods":["POST"],"args":{"id":{"description":"The id of a template","type":"string","required":false},"slug":{"description":"Unique slug identifying the template.","type":"string","minLength":1,"pattern":"[a-zA-Z0-9_\\%-]+","required":false},"theme":{"description":"Theme identifier for the template.","type":"string","required":false},"type":{"description":"Type of template.","type":"string","required":false},"content":{"description":"Content of template.","type":["object","string"],"properties":{"raw":{"description":"Content for the template, as it exists in the database.","type":"string","context":["view","edit"]},"block_version":{"description":"Version of the content block format used by the template.","type":"integer","context":["edit"],"readonly":true}},"required":false},"title":{"description":"Title of template.","type":["object","string"],"properties":{"raw":{"description":"Title for the template, as it exists in the database.","type":"string","context":["view","edit","embed"]},"rendered":{"description":"HTML title for the template, transformed for display.","type":"string","context":["view","edit","embed"],"readonly":true}},"required":false},"description":{"description":"Description of template.","type":"string","required":false},"status":{"description":"Status of template.","type":"string","enum":["publish","future","draft","pending","private"],"required":false},"author":{"description":"The ID for the author of the template.","type":"integer","required":false}}}]},"\/wp\/v2\/templates\/(?P([^\\\/:<>\\*\\?\"\\|]+(?:\\\/[^\\\/:<>\\*\\?\"\\|]+)?)[\\\/\\w%-]+)\/autosaves\/(?P[\\d]+)":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"parent":{"description":"The id of a template","type":"string","required":false},"id":{"description":"The ID for the autosave.","type":"integer","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}}]},"\/wp\/v2\/templates":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false},"wp_id":{"description":"Limit to the specified post id.","type":"integer","required":false},"area":{"description":"Limit to the specified template part area.","type":"string","required":false},"post_type":{"description":"Post type to get the templates for.","type":"string","required":false}}},{"methods":["POST"],"args":{"slug":{"description":"Unique slug identifying the template.","type":"string","minLength":1,"pattern":"[a-zA-Z0-9_\\%-]+","required":true},"theme":{"description":"Theme identifier for the template.","type":"string","required":false},"type":{"description":"Type of template.","type":"string","required":false},"content":{"default":"","description":"Content of template.","type":["object","string"],"properties":{"raw":{"description":"Content for the template, as it exists in the database.","type":"string","context":["view","edit"]},"block_version":{"description":"Version of the content block format used by the template.","type":"integer","context":["edit"],"readonly":true}},"required":false},"title":{"default":"","description":"Title of template.","type":["object","string"],"properties":{"raw":{"description":"Title for the template, as it exists in the database.","type":"string","context":["view","edit","embed"]},"rendered":{"description":"HTML title for the template, transformed for display.","type":"string","context":["view","edit","embed"],"readonly":true}},"required":false},"description":{"default":"","description":"Description of template.","type":"string","required":false},"status":{"default":"publish","description":"Status of template.","type":"string","enum":["publish","future","draft","pending","private"],"required":false},"author":{"description":"The ID for the author of the template.","type":"integer","required":false}}}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp\/v2\/templates"}]}},"\/wp\/v2\/templates\/lookup":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"slug":{"description":"The slug of the template to get the fallback for","type":"string","required":true},"is_custom":{"description":"Indicates if a template is custom or part of the template hierarchy","type":"boolean","required":false},"template_prefix":{"description":"The template prefix for the created template. This is used to extract the main template type, e.g. in `taxonomy-books` extracts the `taxonomy`","type":"string","required":false}}}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp\/v2\/templates\/lookup"}]}},"\/wp\/v2\/templates\/(?P([^\\\/:<>\\*\\?\"\\|]+(?:\\\/[^\\\/:<>\\*\\?\"\\|]+)?)[\\\/\\w%-]+)":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"The id of a template","type":"string","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"The id of a template","type":"string","required":false},"slug":{"description":"Unique slug identifying the template.","type":"string","minLength":1,"pattern":"[a-zA-Z0-9_\\%-]+","required":false},"theme":{"description":"Theme identifier for the template.","type":"string","required":false},"type":{"description":"Type of template.","type":"string","required":false},"content":{"description":"Content of template.","type":["object","string"],"properties":{"raw":{"description":"Content for the template, as it exists in the database.","type":"string","context":["view","edit"]},"block_version":{"description":"Version of the content block format used by the template.","type":"integer","context":["edit"],"readonly":true}},"required":false},"title":{"description":"Title of template.","type":["object","string"],"properties":{"raw":{"description":"Title for the template, as it exists in the database.","type":"string","context":["view","edit","embed"]},"rendered":{"description":"HTML title for the template, transformed for display.","type":"string","context":["view","edit","embed"],"readonly":true}},"required":false},"description":{"description":"Description of template.","type":"string","required":false},"status":{"description":"Status of template.","type":"string","enum":["publish","future","draft","pending","private"],"required":false},"author":{"description":"The ID for the author of the template.","type":"integer","required":false}}},{"methods":["DELETE"],"args":{"id":{"description":"The id of a template","type":"string","required":false},"force":{"type":"boolean","default":false,"description":"Whether to bypass Trash and force deletion.","required":false}}}]},"\/wp\/v2\/template-parts\/(?P([^\\\/:<>\\*\\?\"\\|]+(?:\\\/[^\\\/:<>\\*\\?\"\\|]+)?)[\\\/\\w%-]+)\/revisions":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"parent":{"description":"The id of a template","type":"string","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"exclude":{"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"include":{"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"offset":{"description":"Offset the result set by a specific number of items.","type":"integer","required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"desc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort collection by object attribute.","type":"string","default":"date","enum":["date","id","include","relevance","slug","include_slugs","title"],"required":false}}}]},"\/wp\/v2\/template-parts\/(?P([^\\\/:<>\\*\\?\"\\|]+(?:\\\/[^\\\/:<>\\*\\?\"\\|]+)?)[\\\/\\w%-]+)\/revisions\/(?P[\\d]+)":{"namespace":"wp\/v2","methods":["GET","DELETE"],"endpoints":[{"methods":["GET"],"args":{"parent":{"description":"The id of a template","type":"string","required":false},"id":{"description":"Unique identifier for the revision.","type":"integer","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}},{"methods":["DELETE"],"args":{"parent":{"description":"The id of a template","type":"string","required":false},"id":{"description":"Unique identifier for the revision.","type":"integer","required":false},"force":{"type":"boolean","default":false,"description":"Required to be true, as revisions do not support trashing.","required":false}}}]},"\/wp\/v2\/template-parts\/(?P([^\\\/:<>\\*\\?\"\\|]+(?:\\\/[^\\\/:<>\\*\\?\"\\|]+)?)[\\\/\\w%-]+)\/autosaves":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"The id of a template","type":"string","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}},{"methods":["POST"],"args":{"id":{"description":"The id of a template","type":"string","required":false},"slug":{"description":"Unique slug identifying the template.","type":"string","minLength":1,"pattern":"[a-zA-Z0-9_\\%-]+","required":false},"theme":{"description":"Theme identifier for the template.","type":"string","required":false},"type":{"description":"Type of template.","type":"string","required":false},"content":{"description":"Content of template.","type":["object","string"],"properties":{"raw":{"description":"Content for the template, as it exists in the database.","type":"string","context":["view","edit"]},"block_version":{"description":"Version of the content block format used by the template.","type":"integer","context":["edit"],"readonly":true}},"required":false},"title":{"description":"Title of template.","type":["object","string"],"properties":{"raw":{"description":"Title for the template, as it exists in the database.","type":"string","context":["view","edit","embed"]},"rendered":{"description":"HTML title for the template, transformed for display.","type":"string","context":["view","edit","embed"],"readonly":true}},"required":false},"description":{"description":"Description of template.","type":"string","required":false},"status":{"description":"Status of template.","type":"string","enum":["publish","future","draft","pending","private"],"required":false},"author":{"description":"The ID for the author of the template.","type":"integer","required":false},"area":{"description":"Where the template part is intended for use (header, footer, etc.)","type":"string","required":false}}}]},"\/wp\/v2\/template-parts\/(?P([^\\\/:<>\\*\\?\"\\|]+(?:\\\/[^\\\/:<>\\*\\?\"\\|]+)?)[\\\/\\w%-]+)\/autosaves\/(?P[\\d]+)":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"parent":{"description":"The id of a template","type":"string","required":false},"id":{"description":"The ID for the autosave.","type":"integer","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}}]},"\/wp\/v2\/template-parts":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false},"wp_id":{"description":"Limit to the specified post id.","type":"integer","required":false},"area":{"description":"Limit to the specified template part area.","type":"string","required":false},"post_type":{"description":"Post type to get the templates for.","type":"string","required":false}}},{"methods":["POST"],"args":{"slug":{"description":"Unique slug identifying the template.","type":"string","minLength":1,"pattern":"[a-zA-Z0-9_\\%-]+","required":true},"theme":{"description":"Theme identifier for the template.","type":"string","required":false},"type":{"description":"Type of template.","type":"string","required":false},"content":{"default":"","description":"Content of template.","type":["object","string"],"properties":{"raw":{"description":"Content for the template, as it exists in the database.","type":"string","context":["view","edit"]},"block_version":{"description":"Version of the content block format used by the template.","type":"integer","context":["edit"],"readonly":true}},"required":false},"title":{"default":"","description":"Title of template.","type":["object","string"],"properties":{"raw":{"description":"Title for the template, as it exists in the database.","type":"string","context":["view","edit","embed"]},"rendered":{"description":"HTML title for the template, transformed for display.","type":"string","context":["view","edit","embed"],"readonly":true}},"required":false},"description":{"default":"","description":"Description of template.","type":"string","required":false},"status":{"default":"publish","description":"Status of template.","type":"string","enum":["publish","future","draft","pending","private"],"required":false},"author":{"description":"The ID for the author of the template.","type":"integer","required":false},"area":{"description":"Where the template part is intended for use (header, footer, etc.)","type":"string","required":false}}}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp\/v2\/template-parts"}]}},"\/wp\/v2\/template-parts\/lookup":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"slug":{"description":"The slug of the template to get the fallback for","type":"string","required":true},"is_custom":{"description":"Indicates if a template is custom or part of the template hierarchy","type":"boolean","required":false},"template_prefix":{"description":"The template prefix for the created template. This is used to extract the main template type, e.g. in `taxonomy-books` extracts the `taxonomy`","type":"string","required":false}}}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp\/v2\/template-parts\/lookup"}]}},"\/wp\/v2\/template-parts\/(?P([^\\\/:<>\\*\\?\"\\|]+(?:\\\/[^\\\/:<>\\*\\?\"\\|]+)?)[\\\/\\w%-]+)":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"The id of a template","type":"string","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"The id of a template","type":"string","required":false},"slug":{"description":"Unique slug identifying the template.","type":"string","minLength":1,"pattern":"[a-zA-Z0-9_\\%-]+","required":false},"theme":{"description":"Theme identifier for the template.","type":"string","required":false},"type":{"description":"Type of template.","type":"string","required":false},"content":{"description":"Content of template.","type":["object","string"],"properties":{"raw":{"description":"Content for the template, as it exists in the database.","type":"string","context":["view","edit"]},"block_version":{"description":"Version of the content block format used by the template.","type":"integer","context":["edit"],"readonly":true}},"required":false},"title":{"description":"Title of template.","type":["object","string"],"properties":{"raw":{"description":"Title for the template, as it exists in the database.","type":"string","context":["view","edit","embed"]},"rendered":{"description":"HTML title for the template, transformed for display.","type":"string","context":["view","edit","embed"],"readonly":true}},"required":false},"description":{"description":"Description of template.","type":"string","required":false},"status":{"description":"Status of template.","type":"string","enum":["publish","future","draft","pending","private"],"required":false},"author":{"description":"The ID for the author of the template.","type":"integer","required":false},"area":{"description":"Where the template part is intended for use (header, footer, etc.)","type":"string","required":false}}},{"methods":["DELETE"],"args":{"id":{"description":"The id of a template","type":"string","required":false},"force":{"type":"boolean","default":false,"description":"Whether to bypass Trash and force deletion.","required":false}}}]},"\/wp\/v2\/global-styles\/(?P[\\d]+)\/revisions":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"parent":{"description":"The ID for the parent of the revision.","type":"integer","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","minimum":1,"maximum":100,"required":false},"offset":{"description":"Offset the result set by a specific number of items.","type":"integer","required":false}}}]},"\/wp\/v2\/global-styles\/(?P[\\d]+)\/revisions\/(?P[\\d]+)":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"parent":{"description":"The ID for the parent of the global styles revision.","type":"integer","required":false},"id":{"description":"Unique identifier for the global styles revision.","type":"integer","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}}]},"\/wp\/v2\/global-styles\/themes\/(?P[\\\/\\s%\\w\\.\\(\\)\\[\\]\\@_\\-]+)\/variations":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"allow_batch":{"v1":false},"args":{"stylesheet":{"description":"The theme identifier","type":"string","required":false}}}]},"\/wp\/v2\/global-styles\/themes\/(?P[^\\\/:<>\\*\\?\"\\|]+(?:\\\/[^\\\/:<>\\*\\?\"\\|]+)?)":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"allow_batch":{"v1":false},"args":{"stylesheet":{"description":"The theme identifier","type":"string","required":false}}}]},"\/wp\/v2\/global-styles\/(?P[\\\/\\w-]+)":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH"],"endpoints":[{"methods":["GET"],"allow_batch":{"v1":false},"args":{"id":{"description":"The id of a template","type":"string","required":false}}},{"methods":["POST","PUT","PATCH"],"allow_batch":{"v1":false},"args":{"styles":{"description":"Global styles.","type":["object"],"required":false},"settings":{"description":"Global settings.","type":["object"],"required":false},"title":{"description":"Title of the global styles variation.","type":["object","string"],"properties":{"raw":{"description":"Title for the global styles variation, as it exists in the database.","type":"string","context":["view","edit","embed"]},"rendered":{"description":"HTML title for the post, transformed for display.","type":"string","context":["view","edit","embed"],"readonly":true}},"required":false}}}]},"\/wp\/v2\/navigation":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"allow_batch":{"v1":true},"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"after":{"description":"Limit response to posts published after a given ISO8601 compliant date.","type":"string","format":"date-time","required":false},"modified_after":{"description":"Limit response to posts modified after a given ISO8601 compliant date.","type":"string","format":"date-time","required":false},"before":{"description":"Limit response to posts published before a given ISO8601 compliant date.","type":"string","format":"date-time","required":false},"modified_before":{"description":"Limit response to posts modified before a given ISO8601 compliant date.","type":"string","format":"date-time","required":false},"exclude":{"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"include":{"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"offset":{"description":"Offset the result set by a specific number of items.","type":"integer","required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"desc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort collection by post attribute.","type":"string","default":"date","enum":["author","date","id","include","modified","parent","relevance","slug","include_slugs","title"],"required":false},"search_columns":{"default":[],"description":"Array of column names to be searched.","type":"array","items":{"enum":["post_title","post_content","post_excerpt"],"type":"string"},"required":false},"slug":{"description":"Limit result set to posts with one or more specific slugs.","type":"array","items":{"type":"string"},"required":false},"status":{"default":"publish","description":"Limit result set to posts assigned one or more statuses.","type":"array","items":{"enum":["publish","future","draft","pending","private","trash","auto-draft","inherit","request-pending","request-confirmed","request-failed","request-completed","any"],"type":"string"},"required":false}}},{"methods":["POST"],"allow_batch":{"v1":true},"args":{"date":{"description":"The date the post was published, in the site's timezone.","type":["string","null"],"format":"date-time","required":false},"date_gmt":{"description":"The date the post was published, as GMT.","type":["string","null"],"format":"date-time","required":false},"slug":{"description":"An alphanumeric identifier for the post unique to its type.","type":"string","required":false},"status":{"description":"A named status for the post.","type":"string","enum":["publish","future","draft","pending","private"],"required":false},"password":{"description":"A password to protect access to the content and excerpt.","type":"string","required":false},"title":{"description":"The title for the post.","type":"object","properties":{"raw":{"description":"Title for the post, as it exists in the database.","type":"string","context":["edit","embed"]},"rendered":{"description":"HTML title for the post, transformed for display.","type":"string","context":["view","edit","embed"],"readonly":true}},"required":false},"content":{"description":"The content for the post.","type":"object","properties":{"raw":{"description":"Content for the post, as it exists in the database.","type":"string","context":["edit","embed"]},"rendered":{"description":"HTML content for the post, transformed for display.","type":"string","context":["view","edit","embed"],"readonly":true},"block_version":{"description":"Version of the content block format used by the post.","type":"integer","context":["edit","embed"],"readonly":true},"protected":{"description":"Whether the content is protected with a password.","type":"boolean","context":["view","edit","embed"],"readonly":true}},"required":false},"template":{"description":"The theme file to use to display the post.","type":"string","required":false}}}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp\/v2\/navigation"}]}},"\/wp\/v2\/navigation\/(?P[\\d]+)":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"allow_batch":{"v1":true},"args":{"id":{"description":"Unique identifier for the post.","type":"integer","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false},"password":{"description":"The password for the post if it is password protected.","type":"string","required":false}}},{"methods":["POST","PUT","PATCH"],"allow_batch":{"v1":true},"args":{"id":{"description":"Unique identifier for the post.","type":"integer","required":false},"date":{"description":"The date the post was published, in the site's timezone.","type":["string","null"],"format":"date-time","required":false},"date_gmt":{"description":"The date the post was published, as GMT.","type":["string","null"],"format":"date-time","required":false},"slug":{"description":"An alphanumeric identifier for the post unique to its type.","type":"string","required":false},"status":{"description":"A named status for the post.","type":"string","enum":["publish","future","draft","pending","private"],"required":false},"password":{"description":"A password to protect access to the content and excerpt.","type":"string","required":false},"title":{"description":"The title for the post.","type":"object","properties":{"raw":{"description":"Title for the post, as it exists in the database.","type":"string","context":["edit","embed"]},"rendered":{"description":"HTML title for the post, transformed for display.","type":"string","context":["view","edit","embed"],"readonly":true}},"required":false},"content":{"description":"The content for the post.","type":"object","properties":{"raw":{"description":"Content for the post, as it exists in the database.","type":"string","context":["edit","embed"]},"rendered":{"description":"HTML content for the post, transformed for display.","type":"string","context":["view","edit","embed"],"readonly":true},"block_version":{"description":"Version of the content block format used by the post.","type":"integer","context":["edit","embed"],"readonly":true},"protected":{"description":"Whether the content is protected with a password.","type":"boolean","context":["view","edit","embed"],"readonly":true}},"required":false},"template":{"description":"The theme file to use to display the post.","type":"string","required":false}}},{"methods":["DELETE"],"allow_batch":{"v1":true},"args":{"id":{"description":"Unique identifier for the post.","type":"integer","required":false},"force":{"type":"boolean","default":false,"description":"Whether to bypass Trash and force deletion.","required":false}}}]},"\/wp\/v2\/navigation\/(?P[\\d]+)\/revisions":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"parent":{"description":"The ID for the parent of the revision.","type":"integer","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"exclude":{"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"include":{"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"offset":{"description":"Offset the result set by a specific number of items.","type":"integer","required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"desc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort collection by object attribute.","type":"string","default":"date","enum":["date","id","include","relevance","slug","include_slugs","title"],"required":false}}}]},"\/wp\/v2\/navigation\/(?P[\\d]+)\/revisions\/(?P[\\d]+)":{"namespace":"wp\/v2","methods":["GET","DELETE"],"endpoints":[{"methods":["GET"],"args":{"parent":{"description":"The ID for the parent of the revision.","type":"integer","required":false},"id":{"description":"Unique identifier for the revision.","type":"integer","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}},{"methods":["DELETE"],"args":{"parent":{"description":"The ID for the parent of the revision.","type":"integer","required":false},"id":{"description":"Unique identifier for the revision.","type":"integer","required":false},"force":{"type":"boolean","default":false,"description":"Required to be true, as revisions do not support trashing.","required":false}}}]},"\/wp\/v2\/navigation\/(?P[\\d]+)\/autosaves":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"parent":{"description":"The ID for the parent of the autosave.","type":"integer","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}},{"methods":["POST"],"args":{"parent":{"description":"The ID for the parent of the autosave.","type":"integer","required":false},"date":{"description":"The date the post was published, in the site's timezone.","type":["string","null"],"format":"date-time","required":false},"date_gmt":{"description":"The date the post was published, as GMT.","type":["string","null"],"format":"date-time","required":false},"slug":{"description":"An alphanumeric identifier for the post unique to its type.","type":"string","required":false},"status":{"description":"A named status for the post.","type":"string","enum":["publish","future","draft","pending","private"],"required":false},"password":{"description":"A password to protect access to the content and excerpt.","type":"string","required":false},"title":{"description":"The title for the post.","type":"object","properties":{"raw":{"description":"Title for the post, as it exists in the database.","type":"string","context":["edit","embed"]},"rendered":{"description":"HTML title for the post, transformed for display.","type":"string","context":["view","edit","embed"],"readonly":true}},"required":false},"content":{"description":"The content for the post.","type":"object","properties":{"raw":{"description":"Content for the post, as it exists in the database.","type":"string","context":["edit","embed"]},"rendered":{"description":"HTML content for the post, transformed for display.","type":"string","context":["view","edit","embed"],"readonly":true},"block_version":{"description":"Version of the content block format used by the post.","type":"integer","context":["edit","embed"],"readonly":true},"protected":{"description":"Whether the content is protected with a password.","type":"boolean","context":["view","edit","embed"],"readonly":true}},"required":false},"template":{"description":"The theme file to use to display the post.","type":"string","required":false}}}]},"\/wp\/v2\/navigation\/(?P[\\d]+)\/autosaves\/(?P[\\d]+)":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"parent":{"description":"The ID for the parent of the autosave.","type":"integer","required":false},"id":{"description":"The ID for the autosave.","type":"integer","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}}]},"\/wp\/v2\/font-families":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"exclude":{"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"include":{"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"offset":{"description":"Offset the result set by a specific number of items.","type":"integer","required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"desc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort collection by post attribute.","type":"string","default":"id","enum":["id","include"],"required":false},"slug":{"description":"Limit result set to posts with one or more specific slugs.","type":"array","items":{"type":"string"},"required":false}}},{"methods":["POST"],"args":{"theme_json_version":{"description":"Version of the theme.json schema used for the typography settings.","type":"integer","default":3,"minimum":2,"maximum":3,"required":false},"font_family_settings":{"description":"font-family declaration in theme.json format, encoded as a string.","type":"string","required":true}}}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp\/v2\/font-families"}]}},"\/wp\/v2\/font-families\/(?P[\\d]+)":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Unique identifier for the post.","type":"integer","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Unique identifier for the post.","type":"integer","required":false},"theme_json_version":{"description":"Version of the theme.json schema used for the typography settings.","type":"integer","default":3,"minimum":2,"maximum":3,"required":false},"font_family_settings":{"description":"font-family declaration in theme.json format, encoded as a string.","type":"string","required":true}}},{"methods":["DELETE"],"args":{"id":{"description":"Unique identifier for the post.","type":"integer","required":false},"force":{"type":"boolean","default":false,"description":"Whether to bypass Trash and force deletion.","required":false}}}]},"\/wp\/v2\/font-families\/(?P[\\d]+)\/font-faces":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"font_family_id":{"description":"The ID for the parent font family of the font face.","type":"integer","required":true},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"exclude":{"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"include":{"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"offset":{"description":"Offset the result set by a specific number of items.","type":"integer","required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"desc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort collection by post attribute.","type":"string","default":"id","enum":["id","include"],"required":false}}},{"methods":["POST"],"args":{"font_family_id":{"description":"The ID for the parent font family of the font face.","type":"integer","required":true},"theme_json_version":{"description":"Version of the theme.json schema used for the typography settings.","type":"integer","default":3,"minimum":2,"maximum":3,"required":false},"font_face_settings":{"description":"font-face declaration in theme.json format, encoded as a string.","type":"string","required":true}}}]},"\/wp\/v2\/font-families\/(?P[\\d]+)\/font-faces\/(?P[\\d]+)":{"namespace":"wp\/v2","methods":["GET","DELETE"],"endpoints":[{"methods":["GET"],"args":{"font_family_id":{"description":"The ID for the parent font family of the font face.","type":"integer","required":true},"id":{"description":"Unique identifier for the font face.","type":"integer","required":true},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}},{"methods":["DELETE"],"args":{"font_family_id":{"description":"The ID for the parent font family of the font face.","type":"integer","required":true},"id":{"description":"Unique identifier for the font face.","type":"integer","required":true},"force":{"type":"boolean","default":false,"description":"Whether to bypass Trash and force deletion.","required":false}}}]},"\/wp\/v2\/types":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp\/v2\/types"}]}},"\/wp\/v2\/types\/(?P[\\w-]+)":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"type":{"description":"An alphanumeric identifier for the post type.","type":"string","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}}]},"\/wp\/v2\/statuses":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp\/v2\/statuses"}]}},"\/wp\/v2\/statuses\/(?P[\\w-]+)":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"status":{"description":"An alphanumeric identifier for the status.","type":"string","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}}]},"\/wp\/v2\/taxonomies":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false},"type":{"description":"Limit results to taxonomies associated with a specific post type.","type":"string","required":false}}}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp\/v2\/taxonomies"}]}},"\/wp\/v2\/taxonomies\/(?P[\\w-]+)":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"taxonomy":{"description":"An alphanumeric identifier for the taxonomy.","type":"string","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}}]},"\/wp\/v2\/categories":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"allow_batch":{"v1":true},"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"exclude":{"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"include":{"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"asc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort collection by term attribute.","type":"string","default":"name","enum":["id","include","name","slug","include_slugs","term_group","description","count"],"required":false},"hide_empty":{"description":"Whether to hide terms not assigned to any posts.","type":"boolean","default":false,"required":false},"parent":{"description":"Limit result set to terms assigned to a specific parent.","type":"integer","required":false},"post":{"description":"Limit result set to terms assigned to a specific post.","type":"integer","default":null,"required":false},"slug":{"description":"Limit result set to terms with one or more specific slugs.","type":"array","items":{"type":"string"},"required":false}}},{"methods":["POST"],"allow_batch":{"v1":true},"args":{"description":{"description":"HTML description of the term.","type":"string","required":false},"name":{"description":"HTML title for the term.","type":"string","required":true},"slug":{"description":"An alphanumeric identifier for the term unique to its type.","type":"string","required":false},"parent":{"description":"The parent term ID.","type":"integer","required":false},"meta":{"description":"Meta fields.","type":"object","properties":[],"required":false}}}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp\/v2\/categories"}]}},"\/wp\/v2\/categories\/(?P[\\d]+)":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"allow_batch":{"v1":true},"args":{"id":{"description":"Unique identifier for the term.","type":"integer","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}},{"methods":["POST","PUT","PATCH"],"allow_batch":{"v1":true},"args":{"id":{"description":"Unique identifier for the term.","type":"integer","required":false},"description":{"description":"HTML description of the term.","type":"string","required":false},"name":{"description":"HTML title for the term.","type":"string","required":false},"slug":{"description":"An alphanumeric identifier for the term unique to its type.","type":"string","required":false},"parent":{"description":"The parent term ID.","type":"integer","required":false},"meta":{"description":"Meta fields.","type":"object","properties":[],"required":false}}},{"methods":["DELETE"],"allow_batch":{"v1":true},"args":{"id":{"description":"Unique identifier for the term.","type":"integer","required":false},"force":{"type":"boolean","default":false,"description":"Required to be true, as terms do not support trashing.","required":false}}}]},"\/wp\/v2\/tags":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"allow_batch":{"v1":true},"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"exclude":{"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"include":{"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"offset":{"description":"Offset the result set by a specific number of items.","type":"integer","required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"asc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort collection by term attribute.","type":"string","default":"name","enum":["id","include","name","slug","include_slugs","term_group","description","count"],"required":false},"hide_empty":{"description":"Whether to hide terms not assigned to any posts.","type":"boolean","default":false,"required":false},"post":{"description":"Limit result set to terms assigned to a specific post.","type":"integer","default":null,"required":false},"slug":{"description":"Limit result set to terms with one or more specific slugs.","type":"array","items":{"type":"string"},"required":false}}},{"methods":["POST"],"allow_batch":{"v1":true},"args":{"description":{"description":"HTML description of the term.","type":"string","required":false},"name":{"description":"HTML title for the term.","type":"string","required":true},"slug":{"description":"An alphanumeric identifier for the term unique to its type.","type":"string","required":false},"meta":{"description":"Meta fields.","type":"object","properties":[],"required":false}}}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp\/v2\/tags"}]}},"\/wp\/v2\/tags\/(?P[\\d]+)":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"allow_batch":{"v1":true},"args":{"id":{"description":"Unique identifier for the term.","type":"integer","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}},{"methods":["POST","PUT","PATCH"],"allow_batch":{"v1":true},"args":{"id":{"description":"Unique identifier for the term.","type":"integer","required":false},"description":{"description":"HTML description of the term.","type":"string","required":false},"name":{"description":"HTML title for the term.","type":"string","required":false},"slug":{"description":"An alphanumeric identifier for the term unique to its type.","type":"string","required":false},"meta":{"description":"Meta fields.","type":"object","properties":[],"required":false}}},{"methods":["DELETE"],"allow_batch":{"v1":true},"args":{"id":{"description":"Unique identifier for the term.","type":"integer","required":false},"force":{"type":"boolean","default":false,"description":"Required to be true, as terms do not support trashing.","required":false}}}]},"\/wp\/v2\/menus":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"allow_batch":{"v1":true},"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"exclude":{"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"include":{"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"offset":{"description":"Offset the result set by a specific number of items.","type":"integer","required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"asc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort collection by term attribute.","type":"string","default":"name","enum":["id","include","name","slug","include_slugs","term_group","description","count"],"required":false},"hide_empty":{"description":"Whether to hide terms not assigned to any posts.","type":"boolean","default":false,"required":false},"post":{"description":"Limit result set to terms assigned to a specific post.","type":"integer","default":null,"required":false},"slug":{"description":"Limit result set to terms with one or more specific slugs.","type":"array","items":{"type":"string"},"required":false}}},{"methods":["POST"],"allow_batch":{"v1":true},"args":{"description":{"description":"HTML description of the term.","type":"string","required":false},"name":{"description":"HTML title for the term.","type":"string","required":true},"slug":{"description":"An alphanumeric identifier for the term unique to its type.","type":"string","required":false},"meta":{"description":"Meta fields.","type":"object","properties":[],"required":false},"locations":{"description":"The locations assigned to the menu.","type":"array","items":{"type":"string"},"required":false},"auto_add":{"description":"Whether to automatically add top level pages to this menu.","type":"boolean","required":false}}}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp\/v2\/menus"}]}},"\/wp\/v2\/menus\/(?P[\\d]+)":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"allow_batch":{"v1":true},"args":{"id":{"description":"Unique identifier for the term.","type":"integer","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}},{"methods":["POST","PUT","PATCH"],"allow_batch":{"v1":true},"args":{"id":{"description":"Unique identifier for the term.","type":"integer","required":false},"description":{"description":"HTML description of the term.","type":"string","required":false},"name":{"description":"HTML title for the term.","type":"string","required":false},"slug":{"description":"An alphanumeric identifier for the term unique to its type.","type":"string","required":false},"meta":{"description":"Meta fields.","type":"object","properties":[],"required":false},"locations":{"description":"The locations assigned to the menu.","type":"array","items":{"type":"string"},"required":false},"auto_add":{"description":"Whether to automatically add top level pages to this menu.","type":"boolean","required":false}}},{"methods":["DELETE"],"allow_batch":{"v1":true},"args":{"id":{"description":"Unique identifier for the term.","type":"integer","required":false},"force":{"type":"boolean","default":false,"description":"Required to be true, as terms do not support trashing.","required":false}}}]},"\/wp\/v2\/wp_pattern_category":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"allow_batch":{"v1":true},"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"exclude":{"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"include":{"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"offset":{"description":"Offset the result set by a specific number of items.","type":"integer","required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"asc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort collection by term attribute.","type":"string","default":"name","enum":["id","include","name","slug","include_slugs","term_group","description","count"],"required":false},"hide_empty":{"description":"Whether to hide terms not assigned to any posts.","type":"boolean","default":false,"required":false},"post":{"description":"Limit result set to terms assigned to a specific post.","type":"integer","default":null,"required":false},"slug":{"description":"Limit result set to terms with one or more specific slugs.","type":"array","items":{"type":"string"},"required":false}}},{"methods":["POST"],"allow_batch":{"v1":true},"args":{"description":{"description":"HTML description of the term.","type":"string","required":false},"name":{"description":"HTML title for the term.","type":"string","required":true},"slug":{"description":"An alphanumeric identifier for the term unique to its type.","type":"string","required":false},"meta":{"description":"Meta fields.","type":"object","properties":[],"required":false}}}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp\/v2\/wp_pattern_category"}]}},"\/wp\/v2\/wp_pattern_category\/(?P[\\d]+)":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"allow_batch":{"v1":true},"args":{"id":{"description":"Unique identifier for the term.","type":"integer","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}},{"methods":["POST","PUT","PATCH"],"allow_batch":{"v1":true},"args":{"id":{"description":"Unique identifier for the term.","type":"integer","required":false},"description":{"description":"HTML description of the term.","type":"string","required":false},"name":{"description":"HTML title for the term.","type":"string","required":false},"slug":{"description":"An alphanumeric identifier for the term unique to its type.","type":"string","required":false},"meta":{"description":"Meta fields.","type":"object","properties":[],"required":false}}},{"methods":["DELETE"],"allow_batch":{"v1":true},"args":{"id":{"description":"Unique identifier for the term.","type":"integer","required":false},"force":{"type":"boolean","default":false,"description":"Required to be true, as terms do not support trashing.","required":false}}}]},"\/wp\/v2\/users":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"allow_batch":{"v1":true},"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"exclude":{"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"include":{"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"offset":{"description":"Offset the result set by a specific number of items.","type":"integer","required":false},"order":{"default":"asc","description":"Order sort attribute ascending or descending.","enum":["asc","desc"],"type":"string","required":false},"orderby":{"default":"name","description":"Sort collection by user attribute.","enum":["id","include","name","registered_date","slug","include_slugs","email","url"],"type":"string","required":false},"slug":{"description":"Limit result set to users with one or more specific slugs.","type":"array","items":{"type":"string"},"required":false},"roles":{"description":"Limit result set to users matching at least one specific role provided. Accepts csv list or single role.","type":"array","items":{"type":"string"},"required":false},"capabilities":{"description":"Limit result set to users matching at least one specific capability provided. Accepts csv list or single capability.","type":"array","items":{"type":"string"},"required":false},"who":{"description":"Limit result set to users who are considered authors.","type":"string","enum":["authors"],"required":false},"has_published_posts":{"description":"Limit result set to users who have published posts.","type":["boolean","array"],"items":{"type":"string","enum":{"post":"post","page":"page","attachment":"attachment","nav_menu_item":"nav_menu_item","wp_block":"wp_block","wp_template":"wp_template","wp_template_part":"wp_template_part","wp_global_styles":"wp_global_styles","wp_navigation":"wp_navigation","wp_font_family":"wp_font_family","wp_font_face":"wp_font_face"}},"required":false}}},{"methods":["POST"],"allow_batch":{"v1":true},"args":{"username":{"description":"Login name for the user.","type":"string","required":true},"name":{"description":"Display name for the user.","type":"string","required":false},"first_name":{"description":"First name for the user.","type":"string","required":false},"last_name":{"description":"Last name for the user.","type":"string","required":false},"email":{"description":"The email address for the user.","type":"string","format":"email","required":true},"url":{"description":"URL of the user.","type":"string","format":"uri","required":false},"description":{"description":"Description of the user.","type":"string","required":false},"locale":{"description":"Locale for the user.","type":"string","enum":["","en_US"],"required":false},"nickname":{"description":"The nickname for the user.","type":"string","required":false},"slug":{"description":"An alphanumeric identifier for the user.","type":"string","required":false},"roles":{"description":"Roles assigned to the user.","type":"array","items":{"type":"string"},"required":false},"password":{"description":"Password for the user (never included).","type":"string","required":true},"meta":{"description":"Meta fields.","type":"object","properties":{"persisted_preferences":{"type":"object","description":"","default":[],"context":["edit"],"properties":{"_modified":{"description":"The date and time the preferences were updated.","type":"string","format":"date-time","readonly":false}},"additionalProperties":true}},"required":false}}}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp\/v2\/users"}]}},"\/wp\/v2\/users\/(?P[\\d]+)":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"allow_batch":{"v1":true},"args":{"id":{"description":"Unique identifier for the user.","type":"integer","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}},{"methods":["POST","PUT","PATCH"],"allow_batch":{"v1":true},"args":{"id":{"description":"Unique identifier for the user.","type":"integer","required":false},"username":{"description":"Login name for the user.","type":"string","required":false},"name":{"description":"Display name for the user.","type":"string","required":false},"first_name":{"description":"First name for the user.","type":"string","required":false},"last_name":{"description":"Last name for the user.","type":"string","required":false},"email":{"description":"The email address for the user.","type":"string","format":"email","required":false},"url":{"description":"URL of the user.","type":"string","format":"uri","required":false},"description":{"description":"Description of the user.","type":"string","required":false},"locale":{"description":"Locale for the user.","type":"string","enum":["","en_US"],"required":false},"nickname":{"description":"The nickname for the user.","type":"string","required":false},"slug":{"description":"An alphanumeric identifier for the user.","type":"string","required":false},"roles":{"description":"Roles assigned to the user.","type":"array","items":{"type":"string"},"required":false},"password":{"description":"Password for the user (never included).","type":"string","required":false},"meta":{"description":"Meta fields.","type":"object","properties":{"persisted_preferences":{"type":"object","description":"","default":[],"context":["edit"],"properties":{"_modified":{"description":"The date and time the preferences were updated.","type":"string","format":"date-time","readonly":false}},"additionalProperties":true}},"required":false}}},{"methods":["DELETE"],"allow_batch":{"v1":true},"args":{"id":{"description":"Unique identifier for the user.","type":"integer","required":false},"force":{"type":"boolean","default":false,"description":"Required to be true, as users do not support trashing.","required":false},"reassign":{"type":"integer","description":"Reassign the deleted user's posts and links to this user ID.","required":true}}}]},"\/wp\/v2\/users\/me":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}},{"methods":["POST","PUT","PATCH"],"args":{"username":{"description":"Login name for the user.","type":"string","required":false},"name":{"description":"Display name for the user.","type":"string","required":false},"first_name":{"description":"First name for the user.","type":"string","required":false},"last_name":{"description":"Last name for the user.","type":"string","required":false},"email":{"description":"The email address for the user.","type":"string","format":"email","required":false},"url":{"description":"URL of the user.","type":"string","format":"uri","required":false},"description":{"description":"Description of the user.","type":"string","required":false},"locale":{"description":"Locale for the user.","type":"string","enum":["","en_US"],"required":false},"nickname":{"description":"The nickname for the user.","type":"string","required":false},"slug":{"description":"An alphanumeric identifier for the user.","type":"string","required":false},"roles":{"description":"Roles assigned to the user.","type":"array","items":{"type":"string"},"required":false},"password":{"description":"Password for the user (never included).","type":"string","required":false},"meta":{"description":"Meta fields.","type":"object","properties":{"persisted_preferences":{"type":"object","description":"","default":[],"context":["edit"],"properties":{"_modified":{"description":"The date and time the preferences were updated.","type":"string","format":"date-time","readonly":false}},"additionalProperties":true}},"required":false}}},{"methods":["DELETE"],"args":{"force":{"type":"boolean","default":false,"description":"Required to be true, as users do not support trashing.","required":false},"reassign":{"type":"integer","description":"Reassign the deleted user's posts and links to this user ID.","required":true}}}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp\/v2\/users\/me"}]}},"\/wp\/v2\/users\/(?P(?:[\\d]+|me))\/application-passwords":{"namespace":"wp\/v2","methods":["GET","POST","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}},{"methods":["POST"],"args":{"app_id":{"description":"A UUID provided by the application to uniquely identify it. It is recommended to use an UUID v5 with the URL or DNS namespace.","type":"string","format":"uuid","required":false},"name":{"description":"The name of the application password.","type":"string","minLength":1,"pattern":".*\\S.*","required":true}}},{"methods":["DELETE"],"args":[]}]},"\/wp\/v2\/users\/(?P(?:[\\d]+|me))\/application-passwords\/introspect":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}}]},"\/wp\/v2\/users\/(?P(?:[\\d]+|me))\/application-passwords\/(?P[\\w\\-]+)":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}},{"methods":["POST","PUT","PATCH"],"args":{"app_id":{"description":"A UUID provided by the application to uniquely identify it. It is recommended to use an UUID v5 with the URL or DNS namespace.","type":"string","format":"uuid","required":false},"name":{"description":"The name of the application password.","type":"string","minLength":1,"pattern":".*\\S.*","required":false}}},{"methods":["DELETE"],"args":[]}]},"\/wp\/v2\/comments":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"after":{"description":"Limit response to comments published after a given ISO8601 compliant date.","type":"string","format":"date-time","required":false},"author":{"description":"Limit result set to comments assigned to specific user IDs. Requires authorization.","type":"array","items":{"type":"integer"},"required":false},"author_exclude":{"description":"Ensure result set excludes comments assigned to specific user IDs. Requires authorization.","type":"array","items":{"type":"integer"},"required":false},"author_email":{"default":null,"description":"Limit result set to that from a specific author email. Requires authorization.","format":"email","type":"string","required":false},"before":{"description":"Limit response to comments published before a given ISO8601 compliant date.","type":"string","format":"date-time","required":false},"exclude":{"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"include":{"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"offset":{"description":"Offset the result set by a specific number of items.","type":"integer","required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"desc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort collection by comment attribute.","type":"string","default":"date_gmt","enum":["date","date_gmt","id","include","post","parent","type"],"required":false},"parent":{"default":[],"description":"Limit result set to comments of specific parent IDs.","type":"array","items":{"type":"integer"},"required":false},"parent_exclude":{"default":[],"description":"Ensure result set excludes specific parent IDs.","type":"array","items":{"type":"integer"},"required":false},"post":{"default":[],"description":"Limit result set to comments assigned to specific post IDs.","type":"array","items":{"type":"integer"},"required":false},"status":{"default":"approve","description":"Limit result set to comments assigned a specific status. Requires authorization.","type":"string","required":false},"type":{"default":"comment","description":"Limit result set to comments assigned a specific type. Requires authorization.","type":"string","required":false},"password":{"description":"The password for the post if it is password protected.","type":"string","required":false}}},{"methods":["POST"],"args":{"author":{"description":"The ID of the user object, if author was a user.","type":"integer","required":false},"author_email":{"description":"Email address for the comment author.","type":"string","format":"email","required":false},"author_ip":{"description":"IP address for the comment author.","type":"string","format":"ip","required":false},"author_name":{"description":"Display name for the comment author.","type":"string","required":false},"author_url":{"description":"URL for the comment author.","type":"string","format":"uri","required":false},"author_user_agent":{"description":"User agent for the comment author.","type":"string","required":false},"content":{"description":"The content for the comment.","type":"object","properties":{"raw":{"description":"Content for the comment, as it exists in the database.","type":"string","context":["edit"]},"rendered":{"description":"HTML content for the comment, transformed for display.","type":"string","context":["view","edit","embed"],"readonly":true}},"required":false},"date":{"description":"The date the comment was published, in the site's timezone.","type":"string","format":"date-time","required":false},"date_gmt":{"description":"The date the comment was published, as GMT.","type":"string","format":"date-time","required":false},"parent":{"default":0,"description":"The ID for the parent of the comment.","type":"integer","required":false},"post":{"default":0,"description":"The ID of the associated post object.","type":"integer","required":false},"status":{"description":"State of the comment.","type":"string","required":false},"meta":{"description":"Meta fields.","type":"object","properties":[],"required":false}}}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp\/v2\/comments"}]}},"\/wp\/v2\/comments\/(?P[\\d]+)":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Unique identifier for the comment.","type":"integer","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false},"password":{"description":"The password for the parent post of the comment (if the post is password protected).","type":"string","required":false}}},{"methods":["POST","PUT","PATCH"],"args":{"id":{"description":"Unique identifier for the comment.","type":"integer","required":false},"author":{"description":"The ID of the user object, if author was a user.","type":"integer","required":false},"author_email":{"description":"Email address for the comment author.","type":"string","format":"email","required":false},"author_ip":{"description":"IP address for the comment author.","type":"string","format":"ip","required":false},"author_name":{"description":"Display name for the comment author.","type":"string","required":false},"author_url":{"description":"URL for the comment author.","type":"string","format":"uri","required":false},"author_user_agent":{"description":"User agent for the comment author.","type":"string","required":false},"content":{"description":"The content for the comment.","type":"object","properties":{"raw":{"description":"Content for the comment, as it exists in the database.","type":"string","context":["edit"]},"rendered":{"description":"HTML content for the comment, transformed for display.","type":"string","context":["view","edit","embed"],"readonly":true}},"required":false},"date":{"description":"The date the comment was published, in the site's timezone.","type":"string","format":"date-time","required":false},"date_gmt":{"description":"The date the comment was published, as GMT.","type":"string","format":"date-time","required":false},"parent":{"description":"The ID for the parent of the comment.","type":"integer","required":false},"post":{"description":"The ID of the associated post object.","type":"integer","required":false},"status":{"description":"State of the comment.","type":"string","required":false},"meta":{"description":"Meta fields.","type":"object","properties":[],"required":false}}},{"methods":["DELETE"],"args":{"id":{"description":"Unique identifier for the comment.","type":"integer","required":false},"force":{"type":"boolean","default":false,"description":"Whether to bypass Trash and force deletion.","required":false},"password":{"description":"The password for the parent post of the comment (if the post is password protected).","type":"string","required":false}}}]},"\/wp\/v2\/search":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed"],"default":"view","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"type":{"default":"post","description":"Limit results to items of an object type.","type":"string","enum":["post","term","post-format"],"required":false},"subtype":{"default":"any","description":"Limit results to items of one or more object subtypes.","type":"array","items":{"enum":["post","page","category","post_tag","any"],"type":"string"},"required":false},"exclude":{"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"include":{"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false}}}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp\/v2\/search"}]}},"\/wp\/v2\/block-renderer\/(?P[a-z0-9-]+\/[a-z0-9-]+)":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET","POST"],"args":{"name":{"description":"Unique registered name for the block.","type":"string","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["edit"],"default":"view","required":false},"attributes":{"description":"Attributes for the block.","type":"object","default":[],"required":false},"post_id":{"description":"ID of the post context.","type":"integer","required":false}}}]},"\/wp\/v2\/block-types":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false},"namespace":{"description":"Block namespace.","type":"string","required":false}}}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp\/v2\/block-types"}]}},"\/wp\/v2\/block-types\/(?P[a-zA-Z0-9_-]+)":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false},"namespace":{"description":"Block namespace.","type":"string","required":false}}}]},"\/wp\/v2\/block-types\/(?P[a-zA-Z0-9_-]+)\/(?P[a-zA-Z0-9_-]+)":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"name":{"description":"Block name.","type":"string","required":false},"namespace":{"description":"Block namespace.","type":"string","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}}]},"\/wp\/v2\/settings":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH"],"endpoints":[{"methods":["GET"],"args":[]},{"methods":["POST","PUT","PATCH"],"args":{"title":{"title":"Title","description":"Site title.","type":"string","required":false},"description":{"title":"Tagline","description":"Site tagline.","type":"string","required":false},"url":{"title":"","description":"Site URL.","type":"string","format":"uri","required":false},"email":{"title":"","description":"This address is used for admin purposes, like new user notification.","type":"string","format":"email","required":false},"timezone":{"title":"","description":"A city in the same timezone as you.","type":"string","required":false},"date_format":{"title":"","description":"A date format for all date strings.","type":"string","required":false},"time_format":{"title":"","description":"A time format for all time strings.","type":"string","required":false},"start_of_week":{"title":"","description":"A day number of the week that the week should start on.","type":"integer","required":false},"language":{"title":"","description":"WordPress locale code.","type":"string","required":false},"use_smilies":{"title":"","description":"Convert emoticons like :-) and :-P to graphics on display.","type":"boolean","required":false},"default_category":{"title":"","description":"Default post category.","type":"integer","required":false},"default_post_format":{"title":"","description":"Default post format.","type":"string","required":false},"posts_per_page":{"title":"Maximum posts per page","description":"Blog pages show at most.","type":"integer","required":false},"show_on_front":{"title":"Show on front","description":"What to show on the front page","type":"string","required":false},"page_on_front":{"title":"Page on front","description":"The ID of the page that should be displayed on the front page","type":"integer","required":false},"page_for_posts":{"title":"","description":"The ID of the page that should display the latest posts","type":"integer","required":false},"default_ping_status":{"title":"","description":"Allow link notifications from other blogs (pingbacks and trackbacks) on new articles.","type":"string","enum":["open","closed"],"required":false},"default_comment_status":{"title":"Allow comments on new posts","description":"Allow people to submit comments on new posts.","type":"string","enum":["open","closed"],"required":false},"site_logo":{"title":"Logo","description":"Site logo.","type":"integer","required":false},"site_icon":{"title":"Icon","description":"Site icon.","type":"integer","required":false}}}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp\/v2\/settings"}]}},"\/wp\/v2\/themes":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"status":{"description":"Limit result set to themes assigned one or more statuses.","type":"array","items":{"enum":["active","inactive"],"type":"string"},"required":false}}}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp\/v2\/themes"}]}},"\/wp\/v2\/themes\/(?P[^\\\/:<>\\*\\?\"\\|]+(?:\\\/[^\\\/:<>\\*\\?\"\\|]+)?)":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"stylesheet":{"description":"The theme's stylesheet. This uniquely identifies the theme.","type":"string","required":false}}}]},"\/wp\/v2\/plugins":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"status":{"description":"Limits results to plugins with the given status.","type":"array","items":{"type":"string","enum":["inactive","active"]},"required":false}}},{"methods":["POST"],"args":{"slug":{"type":"string","description":"WordPress.org plugin directory slug.","pattern":"[\\w\\-]+","required":true},"status":{"description":"The plugin activation status.","type":"string","enum":["inactive","active"],"default":"inactive","required":false}}}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp\/v2\/plugins"}]}},"\/wp\/v2\/plugins\/(?P[^.\\\/]+(?:\\\/[^.\\\/]+)?)":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false},"plugin":{"type":"string","pattern":"[^.\\\/]+(?:\\\/[^.\\\/]+)?","required":false}}},{"methods":["POST","PUT","PATCH"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false},"plugin":{"type":"string","pattern":"[^.\\\/]+(?:\\\/[^.\\\/]+)?","required":false},"status":{"description":"The plugin activation status.","type":"string","enum":["inactive","active"],"required":false}}},{"methods":["DELETE"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false},"plugin":{"type":"string","pattern":"[^.\\\/]+(?:\\\/[^.\\\/]+)?","required":false}}}]},"\/wp\/v2\/sidebars":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp\/v2\/sidebars"}]}},"\/wp\/v2\/sidebars\/(?P[\\w-]+)":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"The id of a registered sidebar","type":"string","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}},{"methods":["POST","PUT","PATCH"],"args":{"widgets":{"description":"Nested widgets.","type":"array","items":{"type":["object","string"]},"required":false}}}]},"\/wp\/v2\/widget-types":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp\/v2\/widget-types"}]}},"\/wp\/v2\/widget-types\/(?P[a-zA-Z0-9_-]+)":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"The widget type id.","type":"string","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}}]},"\/wp\/v2\/widget-types\/(?P[a-zA-Z0-9_-]+)\/encode":{"namespace":"wp\/v2","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"The widget type id.","type":"string","required":true},"instance":{"description":"Current instance settings of the widget.","type":"object","required":false},"form_data":{"description":"Serialized widget form data to encode into instance settings.","type":"string","required":false}}}]},"\/wp\/v2\/widget-types\/(?P[a-zA-Z0-9_-]+)\/render":{"namespace":"wp\/v2","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"id":{"description":"The widget type id.","type":"string","required":true},"instance":{"description":"Current instance settings of the widget.","type":"object","required":false}}}]},"\/wp\/v2\/widgets":{"namespace":"wp\/v2","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"allow_batch":{"v1":true},"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false},"sidebar":{"description":"The sidebar to return widgets for.","type":"string","required":false}}},{"methods":["POST"],"allow_batch":{"v1":true},"args":{"id":{"description":"Unique identifier for the widget.","type":"string","required":false},"id_base":{"description":"The type of the widget. Corresponds to ID in widget-types endpoint.","type":"string","required":false},"sidebar":{"default":"wp_inactive_widgets","description":"The sidebar the widget belongs to.","type":"string","required":true},"instance":{"description":"Instance settings of the widget, if supported.","type":"object","properties":{"encoded":{"description":"Base64 encoded representation of the instance settings.","type":"string","context":["edit"]},"hash":{"description":"Cryptographic hash of the instance settings.","type":"string","context":["edit"]},"raw":{"description":"Unencoded instance settings, if supported.","type":"object","context":["edit"]}},"required":false},"form_data":{"description":"URL-encoded form data from the widget admin form. Used to update a widget that does not support instance. Write only.","type":"string","required":false}}}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp\/v2\/widgets"}]}},"\/wp\/v2\/widgets\/(?P[\\w\\-]+)":{"namespace":"wp\/v2","methods":["GET","POST","PUT","PATCH","DELETE"],"endpoints":[{"methods":["GET"],"allow_batch":{"v1":true},"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}},{"methods":["POST","PUT","PATCH"],"allow_batch":{"v1":true},"args":{"id":{"description":"Unique identifier for the widget.","type":"string","required":false},"id_base":{"description":"The type of the widget. Corresponds to ID in widget-types endpoint.","type":"string","required":false},"sidebar":{"description":"The sidebar the widget belongs to.","type":"string","required":false},"instance":{"description":"Instance settings of the widget, if supported.","type":"object","properties":{"encoded":{"description":"Base64 encoded representation of the instance settings.","type":"string","context":["edit"]},"hash":{"description":"Cryptographic hash of the instance settings.","type":"string","context":["edit"]},"raw":{"description":"Unencoded instance settings, if supported.","type":"object","context":["edit"]}},"required":false},"form_data":{"description":"URL-encoded form data from the widget admin form. Used to update a widget that does not support instance. Write only.","type":"string","required":false}}},{"methods":["DELETE"],"allow_batch":{"v1":true},"args":{"force":{"description":"Whether to force removal of the widget, or move it to the inactive sidebar.","type":"boolean","required":false}}}]},"\/wp\/v2\/block-directory\/search":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view"],"default":"view","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"term":{"description":"Limit result set to blocks matching the search term.","type":"string","minLength":1,"required":true}}}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp\/v2\/block-directory\/search"}]}},"\/wp\/v2\/pattern-directory\/patterns":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":100,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","minLength":1,"required":false},"category":{"description":"Limit results to those matching a category ID.","type":"integer","minimum":1,"required":false},"keyword":{"description":"Limit results to those matching a keyword ID.","type":"integer","minimum":1,"required":false},"slug":{"description":"Limit results to those matching a pattern (slug).","type":"array","required":false},"offset":{"description":"Offset the result set by a specific number of items.","type":"integer","required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"desc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort collection by post attribute.","type":"string","default":"date","enum":["author","date","id","include","modified","parent","relevance","slug","include_slugs","title","favorite_count"],"required":false}}}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp\/v2\/pattern-directory\/patterns"}]}},"\/wp\/v2\/block-patterns\/patterns":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp\/v2\/block-patterns\/patterns"}]}},"\/wp\/v2\/block-patterns\/categories":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp\/v2\/block-patterns\/categories"}]}},"\/wp-site-health\/v1":{"namespace":"wp-site-health\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"default":"wp-site-health\/v1","required":false},"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp-site-health\/v1"}]}},"\/wp-site-health\/v1\/tests\/background-updates":{"namespace":"wp-site-health\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp-site-health\/v1\/tests\/background-updates"}]}},"\/wp-site-health\/v1\/tests\/loopback-requests":{"namespace":"wp-site-health\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp-site-health\/v1\/tests\/loopback-requests"}]}},"\/wp-site-health\/v1\/tests\/https-status":{"namespace":"wp-site-health\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp-site-health\/v1\/tests\/https-status"}]}},"\/wp-site-health\/v1\/tests\/dotorg-communication":{"namespace":"wp-site-health\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp-site-health\/v1\/tests\/dotorg-communication"}]}},"\/wp-site-health\/v1\/tests\/authorization-header":{"namespace":"wp-site-health\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp-site-health\/v1\/tests\/authorization-header"}]}},"\/wp-site-health\/v1\/directory-sizes":{"namespace":"wp-site-health\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp-site-health\/v1\/directory-sizes"}]}},"\/wp-site-health\/v1\/tests\/page-cache":{"namespace":"wp-site-health\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp-site-health\/v1\/tests\/page-cache"}]}},"\/wp-block-editor\/v1":{"namespace":"wp-block-editor\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"default":"wp-block-editor\/v1","required":false},"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp-block-editor\/v1"}]}},"\/wp-block-editor\/v1\/url-details":{"namespace":"wp-block-editor\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"url":{"description":"The URL to process.","type":"string","format":"uri","required":true}}}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp-block-editor\/v1\/url-details"}]}},"\/wp\/v2\/menu-locations":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp\/v2\/menu-locations"}]}},"\/wp\/v2\/menu-locations\/(?P[\\w-]+)":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"location":{"description":"An alphanumeric identifier for the menu location.","type":"string","required":false},"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}}]},"\/wp-block-editor\/v1\/export":{"namespace":"wp-block-editor\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp-block-editor\/v1\/export"}]}},"\/wp-block-editor\/v1\/navigation-fallback":{"namespace":"wp-block-editor\/v1","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp-block-editor\/v1\/navigation-fallback"}]}},"\/wp\/v2\/font-collections":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false},"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false}}}],"_links":{"self":[{"href":"https:\/\/samartworld.in\/wp-json\/wp\/v2\/font-collections"}]}},"\/wp\/v2\/font-collections\/(?P[\\\/\\w-]+)":{"namespace":"wp\/v2","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"context":{"description":"Scope under which the request is made; determines fields present in response.","type":"string","enum":["view","embed","edit"],"default":"view","required":false}}}]}},"site_logo":0,"site_icon":0,"site_icon_url":"","_links":{"help":[{"href":"https:\/\/developer.wordpress.org\/rest-api\/"}]}}