ServiceType
extends ServiceComponent
in package
Single service type.
Retrieves data for a service type.
Tags
Table of Contents
Properties
- $form_field_type : string
- Form field type.
- $help_post_id : int
- The ID of the help post.
- $hide : bool
- Whether the service type is hidden on the booking form.
- $ID : int
- The post ID.
- $service_ids : array<string|int, mixed>
- Service IDs.
- $slug : string
- The post name.
- $title : string
- The post title.
Methods
- __construct() : mixed
- Constructor method.
Properties
$form_field_type
Form field type.
public
string
$form_field_type
The type of field to display on the booking form.
$help_post_id
The ID of the help post.
public
int
$help_post_id
$hide
Whether the service type is hidden on the booking form.
public
bool
$hide
$ID
The post ID.
public
int
$ID
$service_ids
Service IDs.
public
array<string|int, mixed>
$service_ids
An array of service IDs that use the component.
$slug
The post name.
public
string
$slug
$title
The post title.
public
string
$title
Methods
__construct()
Constructor method.
public
__construct(int $post_id) : mixed
Parameters
- $post_id : int