Constructor for WP_Community_Events.
Parameters
$user_idintrequired- WP user ID.
$user_locationfalse|arrayoptional- Stored location data for the user. false to pass no location.
descriptionstringThe name of the locationlatitudestringThe latitude in decimal degrees notation, without the degree symbol. e.g.: 47.615200.longitudestringThe longitude in decimal degrees notation, without the degree symbol. e.g.: -122.341100.countrystringThe ISO 3166-1 alpha-2 country code. e.g.: BR
Default:
false
Source
public function __construct( $user_id, $user_location = false ) {
$this->user_id = absint( $user_id );
$this->user_location = $user_location;
}
Changelog
| Version | Description |
|---|---|
| 4.8.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.