File "Response.php"
Full Path: /home/vantageo/public_html/cache/cache/cache/cache/cache/cache/cache/.wp-cli/wp-content/plugins/facebook-for-woocommerce/includes/API/FBE/Configuration/Read/Response.php
File size: 619 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
declare( strict_types=1 );
namespace WooCommerce\Facebook\API\FBE\Configuration\Read;
defined( 'ABSPATH' ) || exit;
use WooCommerce\Facebook\API;
/**
* FBE Configuration API read response object.
*/
class Response extends API\Response {
/**
* Is Instagram Shopping enabled?
*
* @return boolean
*/
public function is_ig_shopping_enabled(): bool {
return (bool) $this->response_data['ig_shopping']['enabled'] ?? false;
}
/**
* Is Instagram CTA enabled?
*
* @return boolean
*/
public function is_ig_cta_enabled(): bool {
return (bool) $this->response_data['ig_cta']['enabled'];
}
}