Ameliabooking_Helpers::get_organizer( mixed $organizer_id )

Method get_organizer.


Parameters Parameters

$organizer_id

(Required)


Top ↑

Return Return

(object) WPDB get row result.


Source Source

File: src/integrations/ameliabooking/helpers/ameliabooking-helpers.php

	public function get_organizer( $organizer_id = 0 ) {

		global $wpdb;

		$results = $wpdb->get_row(
			$wpdb->prepare(
				"SELECT * FROM {$wpdb->prefix}amelia_users WHERE id = %d",
				$organizer_id
			)
		);

		return $results;
	}