PHP Class New_Device_Notification_WPCom, vip-mu-plugins-public

Customisations for the WordPress.com platform.
Mostra file Open project: Automattic/vip-mu-plugins-public Class Usage Examples

Public Methods

Method Description
__construct ( ) New_Device_Notification_WPCom constructor.
filter_ndn_cookie_domains ( $cookie_domains ) : array Hooks the ndn_cookie_domains filter to add the WordPress.com domain
filter_ndn_location ( object $location ) : object Hooks the ndn_location filter to supply the location of the current remote address.
filter_ndn_message ( $message, $user_obj, $args )
instance ( ) : New_Device_Notification_VIP_Go Get the singleton instance of this class

Method Details

__construct() public method

New_Device_Notification_WPCom constructor.
public __construct ( )

filter_ndn_location() public method

Hooks the ndn_location filter to supply the location of the current remote address.
public filter_ndn_location ( object $location ) : object
$location object A stdClass object, detailing a location (possibly unknown)
return object A stdClass object, detailing the location of the remote address

filter_ndn_message() public method

public filter_ndn_message ( $message, $user_obj, $args )

instance() public static method

Get the singleton instance of this class
public static instance ( ) : New_Device_Notification_VIP_Go
return New_Device_Notification_VIP_Go