PHP 클래스 New_Device_Notification_VIP_Go, vip-mu-plugins-public

Customisations for the VIP Go platform.
파일 보기 프로젝트 열기: Automattic/vip-mu-plugins-public 1 사용 예제들

공개 메소드들

메소드 설명
__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

메소드 상세

__construct() 공개 메소드

New_Device_Notification_VIP_Go constructor.
public __construct ( )

country_code_to_long() 공개 메소드

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
리턴 string The name of a country, or an empty string if nothing matches the supplied code

filter_ndn_location() 공개 메소드

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)
리턴 object A stdClass object, detailing the location of the remote address

instance() 공개 정적인 메소드

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