Summery Summery
Constructor for WP_Community_Events.
Syntax Syntax
Parameters Parameters
- $user_id
-
(Required) WP user ID.
- $user_location
-
(Optional) Stored location data for the user. false to pass no location; array to pass a location { @type string $description The name of the location @type string $latitude The latitude in decimal degrees notation, without the degree symbol. e.g.: 47.615200. @type string $longitude The longitude in decimal degrees notation, without the degree symbol. e.g.: -122.341100. @type string $country The ISO 3166-1 alpha-2 country code. e.g.: BR }
Default value: false
Source Source
File: wp-admin/includes/class-wp-community-events.php
public function __construct( $user_id, $user_location = false ) { $this->user_id = absint( $user_id ); $this->user_location = $user_location; }
Advertisement
Changelog Changelog
Version | Description |
---|---|
4.8.0 | Introduced. |