GIF94;
| Path : /var/www/wordpress/wp-content/plugins/oxygen/plugin/util/ |
| Current File : /var/www/wordpress/wp-content/plugins/oxygen/plugin/util/is-request-from-builder-iframe.php |
<?php
namespace Breakdance;
/**
* @return boolean
*/
function isRequestFromBuilderIframe()
{
// "breakdance_iframe" is always added as a GET-parameter to the iframe URL by builder
if (isset($_GET['breakdance_iframe']) && $_GET['breakdance_iframe']) {
return true;
} else {
return false;
}
}
/**
* @return bool
*/
function isRequestFromBuilderSsr()
{
return filter_input(INPUT_POST, 'action') === 'breakdance_server_side_render';
}
/**
* @return bool
*/
function isRequestFromBuilderDynamicDataGet()
{
return filter_input(INPUT_POST, 'action') === 'breakdance_dynamic_data_get';
}
/**
* @return bool
*/
function isRequestFromGutenbergIframe()
{
return boolval($_GET['breakdance_gutenberg_iframe'] ?? false);
}