Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
primogenial
/
plugins
/
jetpack
/
modules
/
masterbar
/
admin-menu
:
class-wpcom-email-subscription-checker.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?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 ); } }