File: /var/www/vhosts/uyarreklam.com.tr/httpdocs/SubmittableMetaBox.php.tar
httpdocs/wp-content/plugins/google-listings-and-ads/src/Admin/MetaBox/SubmittableMetaBox.php 0000644 00000001336 15155302234 0034453 0 ustar 00 var/www/vhosts/uyarreklam.com.tr <?php
declare( strict_types=1 );
namespace Automattic\WooCommerce\GoogleListingsAndAds\Admin\MetaBox;
use Automattic\WooCommerce\GoogleListingsAndAds\Infrastructure\Registerable;
defined( 'ABSPATH' ) || exit;
/**
* Class SubmittableMetaBox
*
* @package Automattic\WooCommerce\GoogleListingsAndAds\Admin\MetaBox
*/
abstract class SubmittableMetaBox extends AbstractMetaBox implements Registerable {
/**
* Verifies the WooCommerce meta box nonce.
*
* @return bool True is nonce is provided and valid, false otherwise.
*/
protected function verify_nonce(): bool {
return ! empty( $_POST['woocommerce_meta_nonce'] ) && wp_verify_nonce( sanitize_key( $_POST['woocommerce_meta_nonce'] ), 'woocommerce_save_data' );
}
}