Ameliabooking_Helpers::get_services_all()

Get all amelia services.

Contents


Return Return

(array) The amelia services returned by wpdb get_results.


Source Source

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

	public function get_services_all() {

		global $wpdb;

		return $wpdb->get_results(
			$wpdb->prepare(
				"SELECT id, name FROM {$wpdb->prefix}amelia_services WHERE status = %s ORDER BY name ASC LIMIT 999",
				'visible'
			),
			OBJECT
		);

	}