WP_Community_Events::__construct() – Constructor for WP_Community_Events.

You appear to be a bot. Output may be restricted

Description

Constructor for WP_Community_Events.

Usage

WP_Community_Events::__construct( $user_id, $user_location );

Parameters

$user_id
( int ) required – WP user ID.
$user_location
( false|array ) optional – { Stored location data for the user. false to pass no location.
$description
( string ) optional – The name of the location
$latitude
( string ) optional – The latitude in decimal degrees notation, without the degree symbol. e.g.: 47.615200.
$longitude
( string ) optional – The longitude in decimal degrees notation, without the degree symbol. e.g.: -122.341100.
$country
( string ) optional – The ISO 3166-1 alpha-2 country code. e.g.: BR }

Returns

void

Source

File name: wordpress/wp-admin/includes/class-wp-community-events.php
Lines:

1 to 4 of 4
  public function __construct( $user_id, $user_location = false ) {
    $this->user_id       = absint( $user_id );
    $this->user_location = $user_location;
  }
 

 View on GitHub View on Trac