PHP Class New_Device_Notification_WPCom, vip-mu-plugins-public

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

Méthodes publiques

Méthode 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 méthode

New_Device_Notification_WPCom constructor.
public __construct ( )

filter_ndn_location() public méthode

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)
Résultat object A stdClass object, detailing the location of the remote address

filter_ndn_message() public méthode

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

instance() public static méthode

Get the singleton instance of this class
public static instance ( ) : New_Device_Notification_VIP_Go
Résultat New_Device_Notification_VIP_Go