Action and Filter Hook Reference

This is simply a list of action and filter hooks found within plugin files.

Templates, Shortcodes, Core

Templates

appointment_form_widget_steps

templates/widgets/appointment-form.php

Parameters

NameTypeDescription
$widgetArgsarraySaved widget parameters from the database.

Used By

SourcePriority
WidgetsView::appointmentFormStepServiceForm() 10
WidgetsView::appointmentFormStepPeriod() 20
WidgetsView::appointmentFormStepCart() 30
WidgetsView::appointmentFormStepCheckout() 40
WidgetsView::appointmentFormStepPayment() 50
WidgetsView::appointmentFormStepBooking() 60
mpa_email_head_styles

templates/emails/styles.php

{$emailId}_head_styles

templates/emails/styles.php

{$postType}_single_post_attributes

templates/service/single-post.php, templates/employee/single-post.php

Parameters

NameTypeDescription
arrayTemplate args.
{$shortcode_name}_shortcode_steps

templates/shortcodes/appointment-form.php

Used By

SourcePriority
\MotoPress\Appointment\Shortcodes\AppointmentFormShortcode::displaySteps()
{$template_name}_after_item

templates/post/single-item.php

Parameters

NameTypeDescription
arrayTemplate args.
{$template_name}_after_item_start

templates/post/single-item.php

Parameters

NameTypeDescription
arrayTemplate args.
{$template_name}_after_loop

templates/term/loop-terms.php, templates/post/loop-posts.php

Parameters

NameTypeDescription
\WP_Term[]
arrayTemplate args.
{$template_name}_after_term

templates/term/single-term.php

Parameters

NameTypeDescription
arrayTemplate args.
{$template_name}_after_term_start

templates/term/single-term.php

Parameters

NameTypeDescription
arrayTemplate args.
{$template_name}_before_item

templates/post/single-item.php

Parameters

NameTypeDescription
arrayTemplate args.
{$template_name}_before_item_end

templates/post/single-item.php

Parameters

NameTypeDescription
arrayTemplate args.
{$template_name}_before_loop

templates/post/loop-posts.php, templates/term/loop-terms.php

Parameters

NameTypeDescription
\WP_Query
arrayTemplate args.
{$template_name}_before_term

templates/term/single-term.php

Parameters

NameTypeDescription
arrayTemplate args.
{$template_name}_before_term_end

templates/term/single-term.php

Parameters

NameTypeDescription
arrayTemplate args.
{$template_name}_checkout_bottom_sections

templates/shortcodes/booking/step-checkout.php

Used By

SourcePriority
MotoPress\Appointment\Views\ShortcodesView::appointmentFormCheckoutCouponSection() 10
MotoPress\Appointment\Views\ShortcodesView::appointmentFormCheckoutOrderSection() 20
{$template_name}_item_attributes

templates/post/single-item.php

Parameters

NameTypeDescription
arrayTemplate args.
{$template_name}_item_attributes_separator

templates/post/attributes.php

Parameters

NameTypeDescription
string
{$template_name}_item_class

templates/post/single-item.php

Parameters

NameTypeDescription
stringDefault classes.
{$template_name}_item_content

templates/post/single-item.php

Parameters

NameTypeDescription
arrayTemplate args.
{$template_name}_item_excerpt

templates/post/single-item.php

Parameters

NameTypeDescription
arrayTemplate args.
{$template_name}_item_extra

templates/post/single-item.php

Parameters

NameTypeDescription
arrayTemplate args.
{$template_name}_item_image

templates/post/single-item.php

Parameters

NameTypeDescription
arrayTemplate args.
{$template_name}_item_title

templates/post/single-item.php

Parameters

NameTypeDescription
arrayTemplate args.
{$template_name}_list_categories_args

templates/term/term-children.php

Parameters

NameTypeDescription
arrayDefault args.
\WP_Term
arrayTemplate args.
{$template_name}_loop_item

templates/post/loop-posts.php

Parameters

NameTypeDescription
arrayTemplate args.
{$template_name}_loop_term

templates/term/loop-terms.php

Parameters

NameTypeDescription
arrayTemplate args.
{$template_name}_not_found

templates/post/loop-posts.php, templates/term/loop-terms.php

Parameters

NameTypeDescription
\WP_Query
arrayTemplate args.
{$template_name}_pagination_args

templates/post/pagination.php

Parameters

NameTypeDescription
arrayDefault pagination args.
\WP_Query
{$template_name}_payment_top_sections

templates/shortcodes/booking/step-payment.php

Used By

SourcePriority
MotoPress\Appointment\Views\ShortcodesView::appointmentFormPaymentOrderSection() 10
MotoPress\Appointment\Views\ShortcodesView::appointmentFormPaymentCouponSection() 20
{$template_name}_shortcode_email_placeholder

templates/shortcodes/booking/step-checkout.php

Parameters

NameTypeDescription
$placeholderstring
{$template_name}_shortcode_name_placeholder

templates/shortcodes/booking/step-checkout.php

Parameters

NameTypeDescription
$placeholderstring
{$template_name}_shortcode_phone_placeholder

templates/shortcodes/booking/step-checkout.php

Parameters

NameTypeDescription
$placeholderstring
{$template_name}_term_children

templates/term/single-term.php

Parameters

NameTypeDescription
arrayTemplate args.
{$template_name}_term_description

templates/term/single-term.php

Parameters

NameTypeDescription
arrayTemplate args.
{$template_name}_term_image

templates/term/single-term.php

Parameters

NameTypeDescription
arrayTemplate args.
{$template_name}_term_name

templates/term/single-term.php

Parameters

NameTypeDescription
arrayTemplate args.

Shortcodes

mpa_after_{$shortName}_shortcode

includes/shortcodes/AbstractShortcode.php

Parameters

NameTypeDescription
arrayShortcode args.
stringShortcode inner content (empty string in most cases).
stringShortcode tag.
mpa_before_{$shortName}_shortcode

includes/shortcodes/AbstractShortcode.php

Parameters

NameTypeDescription
arrayShortcode args.
stringShortcode inner content (empty string in most cases).
stringShortcode tag.
{$this->getName()}

includes/shortcodes/direct-link-actions/AbstractDirectLinkEntityShortcode.php

{$this->name}_shortcode_wrapper_class

includes/shortcodes/AbstractShortcode.php

Parameters

NameTypeDescription
stringCurrent wrapper class.
arrayShortcode args.

Core

mpa_admin_emails

includes/registries/EmailsRegistry.php

mpa_admin_scripts

includes/bundles/AssetsBundle.php

mpa_admin_styles

includes/bundles/AssetsBundle.php

mpa_after_abandon_payment

includes/services/PaymentManager.php

Parameters

NameTypeDescription
$payment\MotoPress\Appointment\Entities\Payment
$isAbandonedbool
mpa_after_cancel_payment

includes/services/PaymentManager.php

Parameters

NameTypeDescription
$payment\MotoPress\Appointment\Entities\Payment
$isCancelledbool
mpa_after_complete_payment

includes/services/PaymentManager.php

Parameters

NameTypeDescription
$payment\MotoPress\Appointment\Entities\Payment
$isCompletedbool
mpa_after_fail_payment

includes/services/PaymentManager.php

Parameters

NameTypeDescription
$payment\MotoPress\Appointment\Entities\Payment
$isFailedbool
mpa_after_get_{$this->commentSlug}s

includes/post-types/logs/PostTypeLogs.php

mpa_after_hold_payment

includes/services/PaymentManager.php

Parameters

NameTypeDescription
$payment\MotoPress\Appointment\Entities\Payment
$isOnHoldbool
mpa_after_refund_payment

includes/services/PaymentManager.php

Parameters

NameTypeDescription
$payment\MotoPress\Appointment\Entities\Payment
$isRefundedbool
mpa_after_send_email

includes/emails/EmailsDispatcher.php

mpa_before_abandon_payment

includes/services/PaymentManager.php

Parameters

NameTypeDescription
$payment\MotoPress\Appointment\Entities\Payment
mpa_before_cancel_payment

includes/services/PaymentManager.php

Parameters

NameTypeDescription
$payment\MotoPress\Appointment\Entities\Payment
mpa_before_complete_payment

includes/services/PaymentManager.php

Parameters

NameTypeDescription
$payment\MotoPress\Appointment\Entities\Payment
mpa_before_fail_payment

includes/services/PaymentManager.php

Parameters

NameTypeDescription
$payment\MotoPress\Appointment\Entities\Payment
mpa_before_get_{$this->commentSlug}s

includes/post-types/logs/PostTypeLogs.php

mpa_before_hold_payment

includes/services/PaymentManager.php

Parameters

NameTypeDescription
$payment\MotoPress\Appointment\Entities\Payment
mpa_before_refund_payment

includes/services/PaymentManager.php

Parameters

NameTypeDescription
$payment\MotoPress\Appointment\Entities\Payment
mpa_before_send_email

includes/emails/EmailsDispatcher.php

mpa_booking_confirmed_with_payment

includes/post-types/statuses/PaymentStatuses.php, includes/post-types/statuses/PaymentStatuses.php

Parameters

NameTypeDescription
$booking\MotoPress\Appointment\Entities\Booking
$payment\MotoPress\Appointment\Entities\Payment
mpa_booking_placed_by_admin

includes/admin-pages/edit/EditBookingPage.php

Fires after actions "mpa_new_booking_created" and "mpa_booking_{$newStatus}".

mpa_booking_placed_by_user

includes/services/BookingService.php

Fires after actions "mpa_new_booking_created" and "mpa_booking_{$newStatus}".

mpa_countries

includes/bundles/CountriesBundle.php

mpa_currencies

includes/bundles/CurrenciesBundle.php

mpa_customer_emails

includes/registries/EmailsRegistry.php

mpa_direct_link_action_page_pre_render_{$this->getPageSlug()}

includes/direct-link-actions/pages/AbstractVirtualPage.php, includes/direct-link-actions/pages/AbstractRealPage.php

Parameters

NameTypeDescription
$wpPost\WP_Post
$entity\MotoPress\Appointment\Entities\InterfaceUniqueEntity
mpa_display_{$this->name}

includes/metaboxes/AbstractMetabox.php

mpa_edit_{$this->entityType}_page_loaded

includes/admin-pages/edit/EditPostPage.php

mpa_elementor_widgets

includes/elementor/Init.php

mpa_email_template_parts

includes/registries/TemplatesRegistry.php

mpa_employee_activities

includes/fields/complex/TimetableField.php

mpa_flatpickr_l10n

includes/plugin/Assets.php

Parameters

NameTypeDescription
$languagestring
mpa_free_literal

includes/functions/template.php

Parameters

NameTypeDescription
$freeTextstring
mpa_generate_product_name

includes/functions/misc.php

Parameters

NameTypeDescription
$productNamestring
$booking\MotoPress\Appointment\Entities\Booking|int
mpa_get_custom_comment_types

includes/post-types/logs/CustomCommentsFix.php

Parameters

NameTypeDescription
$customCommentTypesstring[]
mpa_get_employee_attributes

includes/functions/entity.php

Parameters

NameTypeDescription
array
\MotoPress\Appointment\Entities\Employee
array
mpa_get_service_attributes

includes/functions/entity.php

Parameters

NameTypeDescription
array
\MotoPress\Appointment\Entities\Service
mpa_gutenberg_blocks_localize_data

includes/gutenberg/Init.php

mpa_locate_template

includes/functions/template.php

Allow addons and 3rd party plugins to filter the template file.

mpa_mailer

includes/functions/misc.php

mpa_new_{$this->entityType}_created

includes/post-types/statuses/AbstractPostStatuses.php

Action example: 'mpa_new_booking_created'.

mpa_payment_abandoned

includes/services/PaymentManager.php

Parameters

NameTypeDescription
$payment\MotoPress\Appointment\Entities\Payment
mpa_payment_can_be_abandoned

includes/services/PaymentManager.php

Parameters

NameTypeDescription
$canBeAbandonedbool
$payment\MotoPress\Appointment\Entities\Payment
mpa_payment_can_be_cancelled

includes/services/PaymentManager.php

Parameters

NameTypeDescription
$canBeCancelledbool
$payment\MotoPress\Appointment\Entities\Payment
mpa_payment_can_be_completed

includes/services/PaymentManager.php

Parameters

NameTypeDescription
$canBeCompletedbool
$payment\MotoPress\Appointment\Entities\Payment
mpa_payment_can_be_failed

includes/services/PaymentManager.php

Parameters

NameTypeDescription
$canBeFailedbool
$payment\MotoPress\Appointment\Entities\Payment
mpa_payment_can_be_on_hold

includes/services/PaymentManager.php

Parameters

NameTypeDescription
$canBeOnHoldbool
$payment\MotoPress\Appointment\Entities\Payment
mpa_payment_can_be_refunded

includes/services/PaymentManager.php

Parameters

NameTypeDescription
$canBeRefundedbool
$payment\MotoPress\Appointment\Entities\Payment
mpa_payment_cancelled

includes/services/PaymentManager.php

Parameters

NameTypeDescription
$payment\MotoPress\Appointment\Entities\Payment
mpa_payment_completed

includes/services/PaymentManager.php

Parameters

NameTypeDescription
$payment\MotoPress\Appointment\Entities\Payment
mpa_payment_failed

includes/services/PaymentManager.php

Parameters

NameTypeDescription
$payment\MotoPress\Appointment\Entities\Payment
mpa_payment_on_hold

includes/services/PaymentManager.php

Parameters

NameTypeDescription
$payment\MotoPress\Appointment\Entities\Payment
mpa_payment_refunded

includes/services/PaymentManager.php

Parameters

NameTypeDescription
$payment\MotoPress\Appointment\Entities\Payment
mpa_plugin_inited

includes/Plugin.php

mpa_plugin_loaded

includes/Plugin.php

mpa_prevent_emails

includes/emails/EmailsDispatcher.php

Parameters

NameTypeDescription
$preventEmailsboolFalse by default.
mpa_prevent_{$this->entityType}_status_transition

includes/post-types/statuses/AbstractPostStatuses.php

mpa_prevent_{$this->getName()}

includes/emails/AbstractEmail.php

mpa_public_scripts

includes/bundles/AssetsBundle.php

mpa_public_styles

includes/bundles/AssetsBundle.php

mpa_register_{$this->entityType}_metaboxes

includes/post-types/AbstractPostType.php

mpa_registered_payment_gateways

includes/registries/PaymentsRegistry.php

mpa_render_field_after_end

includes/fields/AbstractField.php

mpa_render_field_after_input

includes/fields/AbstractField.php

mpa_render_field_before_end

includes/fields/AbstractField.php

mpa_render_field_before_start

includes/fields/AbstractField.php

mpa_repository_after_get_post

includes/repositories/AbstractRepository.php

mpa_repository_after_get_posts

includes/repositories/AbstractRepository.php

mpa_repository_before_get_post

includes/repositories/AbstractRepository.php

mpa_repository_before_get_posts

includes/repositories/AbstractRepository.php

mpa_repository_get_categories_query_args

includes/repositories/AbstractRepository.php

mpa_repository_get_posts_query_args

includes/repositories/AbstractRepository.php

mpa_reservations_updated

includes/services/BookingService.php

Parameters

NameTypeDescription
$booking\MotoPress\Appointment\Entities\Booking
mpa_set_language_before_send_{$emailType}_email

includes/emails/EmailsDispatcher.php

mpa_set_language_before_send_admin_email mpa_set_language_before_send_customer_email mpa_set_language_before_send_notification_email mpa_set_language_before_send_other_email

mpa_settings_categories

includes/bundles/SettingsBundle.php

mpa_settings_saved

includes/admin-pages/custom/SettingsPage.php

mpa_stripe_elements_style

includes/payments/gateways/StripePaymentGateway.php

Parameters

NameTypeDescription
$stylearray
mpa_template_dir

includes/functions/template.php

mpa_tmpl_after_page_select

includes/functions/template.php

Parameters

NameTypeDescription
$argsarray
mpa_tmpl_before_page_select

includes/functions/template.php

Parameters

NameTypeDescription
$argsarray
mpa_tmpl_employees_number

includes/functions/template.php

Parameters

NameTypeDescription
stringDefault text.
intEmployees number.
mpa_tmpl_page_select_args

includes/functions/template.php

Parameters

NameTypeDescription
$argsarray
mpa_translate_page_id

includes/functions/i18n.php

Parameters

NameTypeDescription
$pageIdint
mpa_translate_string

includes/functions/i18n.php

mpa_widget_update

includes/widgets/AbstractWidget.php

Parameters

NameTypeDescription
$newValuesarrayValues to be saved.
$oldValuesarrayPreviously saved values from database.
$widget\WP_WidgetWidget instance.
mpa_{$category}_settings

includes/bundles/SettingsBundle.php

mpa_{$tab}_section_settings

includes/admin-pages/custom/SettingsPage.php

mpa_{$type}_field_class

includes/fields/FieldsFactory.php

widget_title

includes/widgets/AbstractWidget.php

Parameters

NameTypeDescription
$titlestring
$instanceArgsarraySaved values from the database.
$idstringWidget ID.
wpml_current_language

includes/plugin/I18n.php

wpml_default_language

includes/plugin/I18n.php

wpml_is_translated_post_type

includes/plugin/I18n.php

wpml_switch_language

includes/plugin/I18n.php

{$postType}_single_post

includes/views/PostTypePseudoTemplate.php

Used By

SourcePriority
PostTypesView::employeeSinglePost 10
PostTypesView::serviceSinglePost 10
{$postType}_single_post_additional_info_title

includes/views/PostTypesView.php

Parameters

NameTypeDescription
string
{$postType}_single_post_args

includes/views/PostTypesView.php, includes/views/PostTypesView.php

Parameters

NameTypeDescription
arrayTemplate args.
{$postType}_single_post_attributes_args

includes/views/PostTypesView.php

Parameters

NameTypeDescription
$argsarraySee mpa_get_service_attributes() for details.
$service\MotoPress\Appointment\Entities\Service
{$postType}_single_post_attributes_title

includes/views/PostTypesView.php

Parameters

NameTypeDescription
string
{$postType}_single_post_contacts_title

includes/views/PostTypesView.php

Parameters

NameTypeDescription
string
{$postType}_single_post_social_networks_title

includes/views/PostTypesView.php

Parameters

NameTypeDescription
string
{$postType}_thumbnail_size

includes/functions/wordpress.php

Parameters

NameTypeDescription
stringDefault size.
{$postType}_{$view}_thumbnail_size

includes/functions/wordpress.php

Parameters

NameTypeDescription
stringThumbnail size.
{$this->getName()}_tags

includes/emails/template-parts/AbstractTemplatePart.php

{$this->id_base}_widget_fields

includes/widgets/AbstractWidget.php

Parameters

NameTypeDescription
$fieldsarray
{$this->id}_fields

includes/metaboxes/FieldsMetabox.php

{$this->id}_tags

includes/emails/AbstractEmail.php

{$this->postType}_repository_get_categories_query_args

includes/repositories/AbstractRepository.php

{$this->postType}_repository_get_posts_query_args

includes/repositories/AbstractRepository.php

{$this->postType}_status_changed

includes/post-types/statuses/AbstractPostStatuses.php

Action example: 'mpa_booking_status_changed'.

{$this->postType}_{$newStatus}

includes/post-types/statuses/AbstractPostStatuses.php

Action examples: 'mpa_booking_confirmed', 'mpa_booking_cancelled' etc.

Search results