File "class-wpcom-email-subscription-checker.php"
Full Path: /home/warrior1/public_html/languages/wp-content-20241001222009/plugins/jetpack/modules/masterbar/admin-menu/class-wpcom-email-subscription-checker.php
File size: 483 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
/**
* A class that checks for the existence of email subscriptions for a user.
*
* @package automattic/jetpack
*/
/**
* WPCOM_Email_Subscription_Checker
*/
class WPCOM_Email_Subscription_Checker {
/**
* Checks if a user's site has an email subscription
*
* @return bool
*/
public function has_email() {
if ( ! function_exists( 'wpcom_site_has_feature' ) ) {
return false;
}
return wpcom_site_has_feature( \WPCOM_Features::EMAIL_SUBSCRIPTION );
}
}