Ameliabooking_Helpers::get_events()


Source Source

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

	public function get_events() {

		global $wpdb;

		$options = array();

		$results = $wpdb->get_results(
			$wpdb->prepare(
				"SELECT id, name from {$wpdb->prefix}amelia_events WHERE status = %s ORDER BY name ASC LIMIT 999",
				'approved'
			),
			OBJECT
		);

		return $results;

	}