BookingConfirmationShortcode extends AbstractShortcode
in package

Tags
since
3.7.0

added payment confirmation message.

since
3.7.0

added booking details.

since
3.7.0

added payment details.

since
3.7.0

added payment instructions.

Table of Contents

NO_VALUE_PLACEHOLDER  = '—'
$name  : mixed
$payment  : mixed
__construct()  : mixed
addActions()  : mixed
detectBookingConfirmationStatus()  : string|false
detectPaymentConfirmationStatus()  : string
fetchBooking()  : Booking|null
fetchBookingFromPayment()  : Booking|null
fetchPayment()  : Payment|null
fetchPaymentByStripeSource()  : Payment|null
generateShortcode()  : string
getName()  : mixed
register()  : mixed
render()  : mixed
renderBookingConfirmation()  : mixed
renderBookingDetails()  : string
renderBottomInformation()  : mixed
renderPaymentConfirmation()  : mixed
renderPaymentDetails()  : string
renderPaymentInstructions()  : string
afterLoad()  : mixed
buildOrderQuery()  : array<string|int, mixed>

Constants

NO_VALUE_PLACEHOLDER

public mixed NO_VALUE_PLACEHOLDER = '&#8212;'

Properties

$name

protected mixed $name = 'mphb_booking_confirmation'

$payment

protected mixed $payment = null

Methods

__construct()

public __construct() : mixed
Return values
mixed

addActions()

public addActions() : mixed
Return values
mixed

detectBookingConfirmationStatus()

public detectBookingConfirmationStatus() : string|false
Return values
string|false

detectPaymentConfirmationStatus()

public detectPaymentConfirmationStatus() : string
Return values
string

Payment status or "none".

fetchBooking()

public fetchBooking() : Booking|null
Return values
Booking|null

fetchBookingFromPayment()

public fetchBookingFromPayment(Payment|null $payment) : Booking|null
Parameters
$payment : Payment|null
Return values
Booking|null

fetchPayment()

public fetchPayment() : Payment|null
Return values
Payment|null

fetchPaymentByStripeSource()

public fetchPaymentByStripeSource() : Payment|null
Return values
Payment|null

generateShortcode()

public generateShortcode([array<string|int, mixed> $attrs = array() ]) : string
Parameters
$attrs : array<string|int, mixed> = array()

Attributes of shortcode

Return values
string

getName()

public getName() : mixed
Return values
mixed

register()

public register() : mixed
Return values
mixed

render()

public render(mixed $atts, mixed $content, mixed $shortcodeName) : mixed
Parameters
$atts : mixed
$content : mixed
$shortcodeName : mixed
Return values
mixed

renderBookingConfirmation()

public renderBookingConfirmation() : mixed
Return values
mixed

renderBookingDetails()

public renderBookingDetails(Booking|null $booking) : string
Parameters
$booking : Booking|null
Return values
string

renderBottomInformation()

public renderBottomInformation() : mixed
Return values
mixed

renderPaymentConfirmation()

public renderPaymentConfirmation() : mixed
Return values
mixed

renderPaymentDetails()

public renderPaymentDetails(Payment|null $payment) : string
Parameters
$payment : Payment|null
Return values
string

renderPaymentInstructions()

public renderPaymentInstructions(Payment|null $payment) : string
Parameters
$payment : Payment|null
Return values
string

afterLoad()

protected afterLoad() : mixed
Tags
since
4.2.2
Return values
mixed

buildOrderQuery()

protected buildOrderQuery(array<string|int, mixed> $atts, array<string|int, mixed> $defaults) : array<string|int, mixed>
Parameters
$atts : array<string|int, mixed>

Shortcode attributes.

$defaults : array<string|int, mixed>

Default values of "orderby" and "order" attributes.

Tags
see
https://developer.wordpress.org/reference/classes/wp_query/#order-orderby-parameters
Return values
array<string|int, mixed>

Search results