PHP Class New_Device_Notification_VIP_Go, vip-mu-plugins-public

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

Méthodes publiques

Méthode Description
__construct ( ) New_Device_Notification_VIP_Go constructor.
country_code_to_long ( string $code ) : string Convert a two letter country code to a country name.
filter_ndn_location ( object $location ) : object Hooks the ndn_location filter to supply the location of the current remote address.
instance ( ) : New_Device_Notification_VIP_Go Get the singleton instance of this class

Method Details

__construct() public méthode

New_Device_Notification_VIP_Go constructor.
public __construct ( )

country_code_to_long() public méthode

Convert a two letter country code to a country name.
public country_code_to_long ( string $code ) : string
$code string A two letter country code
Résultat string The name of a country, or an empty string if nothing matches the supplied code

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

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