Action and Filter Hook Reference
This is simply a list of action and filter hooks found within plugin files.
Templates
- appointment_form_widget_steps
templates/widgets/appointment-form.php
Parameters
Name Type Description $widgetArgs array Saved widget parameters from the database. Used By
Source Priority 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
Name Type Description array Template args. - {$shortcode_name}_shortcode_steps
templates/shortcodes/appointment-form.php
Used By
Source Priority \MotoPress\Appointment\Shortcodes\AppointmentFormShortcode::displaySteps() - {$template_name}_after_item
templates/post/single-item.php
Parameters
Name Type Description array Template args. - {$template_name}_after_item_start
templates/post/single-item.php
Parameters
Name Type Description array Template args. - {$template_name}_after_loop
templates/term/loop-terms.php, templates/post/loop-posts.php
Parameters
Name Type Description \WP_Term[] array Template args. - {$template_name}_after_term
templates/term/single-term.php
Parameters
Name Type Description array Template args. - {$template_name}_after_term_start
templates/term/single-term.php
Parameters
Name Type Description array Template args. - {$template_name}_before_item
templates/post/single-item.php
Parameters
Name Type Description array Template args. - {$template_name}_before_item_end
templates/post/single-item.php
Parameters
Name Type Description array Template args. - {$template_name}_before_loop
templates/post/loop-posts.php, templates/term/loop-terms.php
Parameters
Name Type Description \WP_Query array Template args. - {$template_name}_before_term
templates/term/single-term.php
Parameters
Name Type Description array Template args. - {$template_name}_before_term_end
templates/term/single-term.php
Parameters
Name Type Description array Template args. - {$template_name}_checkout_bottom_sections
templates/shortcodes/booking/step-checkout.php
Used By
Source Priority MotoPress\Appointment\Views\ShortcodesView::appointmentFormCheckoutCouponSection() 10 MotoPress\Appointment\Views\ShortcodesView::appointmentFormCheckoutOrderSection() 20 - {$template_name}_item_attributes
templates/post/single-item.php
Parameters
Name Type Description array Template args. - {$template_name}_item_attributes_separator
templates/post/attributes.php
Parameters
Name Type Description string - {$template_name}_item_class
templates/post/single-item.php
Parameters
Name Type Description string Default classes. - {$template_name}_item_content
templates/post/single-item.php
Parameters
Name Type Description array Template args. - {$template_name}_item_excerpt
templates/post/single-item.php
Parameters
Name Type Description array Template args. - {$template_name}_item_extra
templates/post/single-item.php
Parameters
Name Type Description array Template args. - {$template_name}_item_image
templates/post/single-item.php
Parameters
Name Type Description array Template args. - {$template_name}_item_title
templates/post/single-item.php
Parameters
Name Type Description array Template args. - {$template_name}_list_categories_args
templates/term/term-children.php
Parameters
Name Type Description array Default args. \WP_Term array Template args. - {$template_name}_loop_item
templates/post/loop-posts.php
Parameters
Name Type Description array Template args. - {$template_name}_loop_term
templates/term/loop-terms.php
Parameters
Name Type Description array Template args. - {$template_name}_not_found
templates/post/loop-posts.php, templates/term/loop-terms.php
Parameters
Name Type Description \WP_Query array Template args. - {$template_name}_pagination_args
templates/post/pagination.php
Parameters
Name Type Description array Default pagination args. \WP_Query - {$template_name}_payment_top_sections
templates/shortcodes/booking/step-payment.php
Used By
Source Priority MotoPress\Appointment\Views\ShortcodesView::appointmentFormPaymentOrderSection() 10 MotoPress\Appointment\Views\ShortcodesView::appointmentFormPaymentCouponSection() 20 - {$template_name}_shortcode_email_placeholder
templates/shortcodes/booking/step-checkout.php
Parameters
Name Type Description $placeholder string - {$template_name}_shortcode_name_placeholder
templates/shortcodes/booking/step-checkout.php
Parameters
Name Type Description $placeholder string - {$template_name}_shortcode_phone_placeholder
templates/shortcodes/booking/step-checkout.php
Parameters
Name Type Description $placeholder string - {$template_name}_term_children
templates/term/single-term.php
Parameters
Name Type Description array Template args. - {$template_name}_term_description
templates/term/single-term.php
Parameters
Name Type Description array Template args. - {$template_name}_term_image
templates/term/single-term.php
Parameters
Name Type Description array Template args. - {$template_name}_term_name
templates/term/single-term.php
Parameters
Name Type Description array Template args.
Shortcodes
- mpa_after_{$shortName}_shortcode
includes/shortcodes/AbstractShortcode.php
Parameters
Name Type Description array Shortcode args. string Shortcode inner content (empty string in most cases). string Shortcode tag. - mpa_before_{$shortName}_shortcode
includes/shortcodes/AbstractShortcode.php
Parameters
Name Type Description array Shortcode args. string Shortcode inner content (empty string in most cases). string Shortcode tag. - {$this->getName()}
includes/shortcodes/direct-link-actions/AbstractDirectLinkEntityShortcode.php
- {$this->name}_shortcode_wrapper_class
includes/shortcodes/AbstractShortcode.php
Parameters
Name Type Description string Current wrapper class. array Shortcode 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
Name Type Description $payment \MotoPress\Appointment\Entities\Payment $isAbandoned bool - mpa_after_cancel_payment
includes/services/PaymentManager.php
Parameters
Name Type Description $payment \MotoPress\Appointment\Entities\Payment $isCancelled bool - mpa_after_complete_payment
includes/services/PaymentManager.php
Parameters
Name Type Description $payment \MotoPress\Appointment\Entities\Payment $isCompleted bool - mpa_after_fail_payment
includes/services/PaymentManager.php
Parameters
Name Type Description $payment \MotoPress\Appointment\Entities\Payment $isFailed bool - mpa_after_get_{$this->commentSlug}s
includes/post-types/logs/PostTypeLogs.php
- mpa_after_hold_payment
includes/services/PaymentManager.php
Parameters
Name Type Description $payment \MotoPress\Appointment\Entities\Payment $isOnHold bool - mpa_after_refund_payment
includes/services/PaymentManager.php
Parameters
Name Type Description $payment \MotoPress\Appointment\Entities\Payment $isRefunded bool - mpa_after_send_email
includes/emails/EmailsDispatcher.php
- mpa_before_abandon_payment
includes/services/PaymentManager.php
Parameters
Name Type Description $payment \MotoPress\Appointment\Entities\Payment - mpa_before_cancel_payment
includes/services/PaymentManager.php
Parameters
Name Type Description $payment \MotoPress\Appointment\Entities\Payment - mpa_before_complete_payment
includes/services/PaymentManager.php
Parameters
Name Type Description $payment \MotoPress\Appointment\Entities\Payment - mpa_before_fail_payment
includes/services/PaymentManager.php
Parameters
Name Type Description $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
Name Type Description $payment \MotoPress\Appointment\Entities\Payment - mpa_before_refund_payment
includes/services/PaymentManager.php
Parameters
Name Type Description $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
Name Type Description $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
Name Type Description $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
Name Type Description $language string - mpa_free_literal
includes/functions/template.php
Parameters
Name Type Description $freeText string - mpa_generate_product_name
includes/functions/misc.php
Parameters
Name Type Description $productName string $booking \MotoPress\Appointment\Entities\Booking|int - mpa_get_custom_comment_types
includes/post-types/logs/CustomCommentsFix.php
Parameters
Name Type Description $customCommentTypes string[] - mpa_get_employee_attributes
includes/functions/entity.php
Parameters
Name Type Description array \MotoPress\Appointment\Entities\Employee array - mpa_get_service_attributes
includes/functions/entity.php
Parameters
Name Type Description 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
Name Type Description $payment \MotoPress\Appointment\Entities\Payment - mpa_payment_can_be_abandoned
includes/services/PaymentManager.php
Parameters
Name Type Description $canBeAbandoned bool $payment \MotoPress\Appointment\Entities\Payment - mpa_payment_can_be_cancelled
includes/services/PaymentManager.php
Parameters
Name Type Description $canBeCancelled bool $payment \MotoPress\Appointment\Entities\Payment - mpa_payment_can_be_completed
includes/services/PaymentManager.php
Parameters
Name Type Description $canBeCompleted bool $payment \MotoPress\Appointment\Entities\Payment - mpa_payment_can_be_failed
includes/services/PaymentManager.php
Parameters
Name Type Description $canBeFailed bool $payment \MotoPress\Appointment\Entities\Payment - mpa_payment_can_be_on_hold
includes/services/PaymentManager.php
Parameters
Name Type Description $canBeOnHold bool $payment \MotoPress\Appointment\Entities\Payment - mpa_payment_can_be_refunded
includes/services/PaymentManager.php
Parameters
Name Type Description $canBeRefunded bool $payment \MotoPress\Appointment\Entities\Payment - mpa_payment_cancelled
includes/services/PaymentManager.php
Parameters
Name Type Description $payment \MotoPress\Appointment\Entities\Payment - mpa_payment_completed
includes/services/PaymentManager.php
Parameters
Name Type Description $payment \MotoPress\Appointment\Entities\Payment - mpa_payment_failed
includes/services/PaymentManager.php
Parameters
Name Type Description $payment \MotoPress\Appointment\Entities\Payment - mpa_payment_on_hold
includes/services/PaymentManager.php
Parameters
Name Type Description $payment \MotoPress\Appointment\Entities\Payment - mpa_payment_refunded
includes/services/PaymentManager.php
Parameters
Name Type Description $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
Name Type Description $preventEmails bool False 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
Name Type Description $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
Name Type Description $style array - mpa_template_dir
includes/functions/template.php
- mpa_tmpl_after_page_select
includes/functions/template.php
Parameters
Name Type Description $args array - mpa_tmpl_before_page_select
includes/functions/template.php
Parameters
Name Type Description $args array - mpa_tmpl_employees_number
includes/functions/template.php
Parameters
Name Type Description string Default text. int Employees number. - mpa_tmpl_page_select_args
includes/functions/template.php
Parameters
Name Type Description $args array - mpa_translate_page_id
includes/functions/i18n.php
Parameters
Name Type Description $pageId int - mpa_translate_string
includes/functions/i18n.php
- mpa_widget_update
includes/widgets/AbstractWidget.php
Parameters
Name Type Description $newValues array Values to be saved. $oldValues array Previously saved values from database. $widget \WP_Widget Widget 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
Name Type Description $title string $instanceArgs array Saved values from the database. $id string Widget 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
Source Priority PostTypesView::employeeSinglePost 10 PostTypesView::serviceSinglePost 10 - {$postType}_single_post_additional_info_title
includes/views/PostTypesView.php
Parameters
Name Type Description string - {$postType}_single_post_args
includes/views/PostTypesView.php, includes/views/PostTypesView.php
Parameters
Name Type Description array Template args. - {$postType}_single_post_attributes_args
includes/views/PostTypesView.php
Parameters
Name Type Description $args array See mpa_get_service_attributes() for details. $service \MotoPress\Appointment\Entities\Service - {$postType}_single_post_attributes_title
includes/views/PostTypesView.php
Parameters
Name Type Description string - {$postType}_single_post_contacts_title
includes/views/PostTypesView.php
Parameters
Name Type Description string - {$postType}_single_post_social_networks_title
includes/views/PostTypesView.php
Parameters
Name Type Description string - {$postType}_thumbnail_size
includes/functions/wordpress.php
Parameters
Name Type Description string Default size. - {$postType}_{$view}_thumbnail_size
includes/functions/wordpress.php
Parameters
Name Type Description string Thumbnail size. - {$this->getName()}_tags
includes/emails/template-parts/AbstractTemplatePart.php
- {$this->id_base}_widget_fields
includes/widgets/AbstractWidget.php
Parameters
Name Type Description $fields array - {$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.