Constructor for WP_Community_Events.
$user_idintrequired
$user_locationfalse|arrayoptional
description stringlatitude stringlongitude stringcountry stringDefault:false
public function __construct( $user_id, $user_location = false ) {
$this->user_id = absint( $user_id );
$this->user_location = $user_location;
}
| Version | Description |
|---|---|
| 4.8.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_community_events/__construct