Documentation

Post
in package

Table of Contents

Properties

$assets_url  : string
$instance  : mixed
$token  : string
$version  : string

Methods

__construct()  : mixed
Post constructor.
instance()  : Post
Get the instance of the Post class.
save_post()  : mixed
Save post callback.
send_email_on_booking_status_change()  : mixed
Send email on booking status change.

Properties

$assets_url

private string $assets_url

$instance

private static mixed $instance = null

$token

private string $token

$version

private string $version

Methods

__construct()

Post constructor.

public __construct() : mixed
Tags
since
1.0.0

instance()

Get the instance of the Post class.

public static instance() : Post
Tags
since
1.0.0
Return values
Post

save_post()

Save post callback.

public save_post(int $post_id, WP_Post $post[, bool $update = false ]) : mixed
Parameters
$post_id : int
$post : WP_Post
$update : bool = false
Tags
since
1.0.0

send_email_on_booking_status_change()

Send email on booking status change.

public send_email_on_booking_status_change(int $meta_id, int $post_id, string $meta_key, mixed $meta_value) : mixed
Parameters
$meta_id : int
$post_id : int
$meta_key : string
$meta_value : mixed
Tags
since
1.0.0

        
On this page

Search results