WP_Community_Events::__construct()
Constructor for WP_Community_Events.
Метод класса: WP_Community_Events{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WP_Community_Events = new WP_Community_Events(); $WP_Community_Events->__construct( $user_id, $user_location );
- $user_id(int) (обязательный)
- WP user ID.
- $user_location(false|массив)
Stored location data for the user. false to pass no location.
По умолчанию: false
-
description(строка)
The name of the location -
latitude(строка)
The latitude in decimal degrees notation, without the degree symbol. e.g.: 47.615200. -
longitude(строка)
The longitude in decimal degrees notation, without the degree symbol. e.g.: -122.341100. - country(строка)
The ISO 3166-1 alpha-2 country code. e.g.: BR
-
Список изменений
С версии 4.8.0 | Введена. |
Код WP_Community_Events::__construct() WP Community Events:: construct WP 6.4.3
public function __construct( $user_id, $user_location = false ) { $this->user_id = absint( $user_id ); $this->user_location = $user_location; }