Docs  /  Reference  /  All hooks

All hooks

Complete alphabetical listing of every action and filter the plugin declares. 53 actions, 71 filters.

Every action and filter the plugin declares, A–Z. Actions come first, then filters. Each row shows the hook name, the arguments passed to the callback, and the file where it fires.

For worked examples and use cases, see Developer Guide → Hooks. This page is the bare reference.

Actions (53)

HookArgumentsFires from
order_updates_for_woo_admin_bar_assigned$update_id, (int) ( $current['order_id'] ?? 0 ), (string) ( $current['title'] …Shared/Updates/OrderUpdatesDb.php:495
order_updates_for_woo_admin_bar_mention$update_id, $order_id, $note_id, $snippet, $mentioned_user_idShared/Updates/UpdateNoteService.php:77
order_updates_for_woo_admin_bar_staff_reply$update_id, $order_id, $note_id, $note_author['name'], (int) $note_author['id'…API/Endpoints/SubmitCustomerUpdateEndpoint.php:439
order_updates_for_woo_after_add_customer_note(int) $created['id'], $update_id, $note, $requestAPI/Endpoints/AddCustomerNoteEndpoint.php:103
order_updates_for_woo_after_add_internal_note(int) $created['id'], $update_id, $note, $requestAPI/Endpoints/AddUpdateNoteEndpoint.php:98
order_updates_for_woo_after_customer_rating$update_id, $order_id, $rating, $requestAPI/Endpoints/SubmitRatingEndpoint.php:216
order_updates_for_woo_after_customer_submit$update_id, $note_id, array( 'order_id' => $order_id, 'order' => $order, 'note…API/Endpoints/SubmitCustomerUpdateEndpoint.php:465
order_updates_for_woo_after_default_form_fields$settingsAdmin/Orders/Views/OrderUpdateFormView.php:89
order_updates_for_woo_after_delete_attachment$attachment_id, $record, $requestAPI/Endpoints/DeleteAttachmentEndpoint.php:68
order_updates_for_woo_after_delete_internal_note$note_id, $update_id, $note, $requestAPI/Endpoints/DeleteUpdateNoteEndpoint.php:103
order_updates_for_woo_after_delete_update$update_id, $update, $requestAPI/Endpoints/DeleteUpdateEndpoint.php:100
order_updates_for_woo_after_mark_solved$update_id, $solved_update, $requestAPI/Endpoints/MarkSolvedEndpoint.php:89
order_updates_for_woo_after_notify_customer$update_id, $note_id, $queued_at_utc, $requestAPI/Endpoints/NotifyCustomerEndpoint.php:99
order_updates_for_woo_after_reopen_update$update_id, $reopened_update, $requestAPI/Endpoints/ReopenUpdateEndpoint.php:117
order_updates_for_woo_after_save_customer_email_preference$order_id, $customer_id, $enabled, $requestAPI/Endpoints/SaveEmailPreferenceEndpoint.php:79
order_updates_for_woo_after_save_staff_email_preference$update_id, $user_id, $muted, $requestAPI/Endpoints/SaveStaffEmailPreferenceEndpoint.php:64
order_updates_for_woo_after_update_customer_note$note_id, $update_id, $note, $requestAPI/Endpoints/UpdateCustomerNoteEndpoint.php:161
order_updates_for_woo_after_update_internal_note$note_id, $update_id, $note, $requestAPI/Endpoints/UpdateUpdateNoteEndpoint.php:124
order_updates_for_woo_after_update_save$update_id, $saved_payload, $update_data, $request, $existingAPI/Endpoints/SaveUpdateEndpoint.php:170
order_updates_for_woo_after_upload_attachment$stored, $context, $requestAPI/Endpoints/UploadAttachmentEndpoint.php:93
order_updates_for_woo_assignee_rotation_after_member$member, $is_activeAdmin/Settings/Fields/AssigneeRotationField.php:200
order_updates_for_woo_attachment_before_delete$record, $attachment_idShared/Attachments/AttachmentService.php:267
order_updates_for_woo_before_add_customer_note$update_id, $note, $requestAPI/Endpoints/AddCustomerNoteEndpoint.php:90
order_updates_for_woo_before_add_internal_note$update_id, $note, $requestAPI/Endpoints/AddUpdateNoteEndpoint.php:90
order_updates_for_woo_before_customer_rating$update_id, $order_id, $stars, $comment, $requestAPI/Endpoints/SubmitRatingEndpoint.php:132
order_updates_for_woo_before_customer_submit$order_id, $order, $note_author, $is_reply, $requestAPI/Endpoints/SubmitCustomerUpdateEndpoint.php:211
order_updates_for_woo_before_default_form_fields$settingsAdmin/Orders/Views/OrderUpdateFormView.php:42
order_updates_for_woo_before_delete_attachment$attachment_id, $record, $requestAPI/Endpoints/DeleteAttachmentEndpoint.php:60
order_updates_for_woo_before_delete_internal_note$note_id, $update_id, $note, $requestAPI/Endpoints/DeleteUpdateNoteEndpoint.php:97
order_updates_for_woo_before_delete_update$update_id, $update, $requestAPI/Endpoints/DeleteUpdateEndpoint.php:82
order_updates_for_woo_before_guest_create_access$order_id, $order_keyAPI/Endpoints/SubmitCustomerUpdateEndpoint.php:128
order_updates_for_woo_before_mark_solved$update_id, $update, $requestAPI/Endpoints/MarkSolvedEndpoint.php:73
order_updates_for_woo_before_notify_customer$update_id, $note_id, $note, $requestAPI/Endpoints/NotifyCustomerEndpoint.php:85
order_updates_for_woo_before_reopen_update$update_id, $update, $requestAPI/Endpoints/ReopenUpdateEndpoint.php:89
order_updates_for_woo_before_save_customer_email_preference$order_id, $customer_id, $enabled, $requestAPI/Endpoints/SaveEmailPreferenceEndpoint.php:75
order_updates_for_woo_before_save_staff_email_preference$update_id, $user_id, $muted, $requestAPI/Endpoints/SaveStaffEmailPreferenceEndpoint.php:60
order_updates_for_woo_before_serve_attachment(int) ( $record['id'] ?? 0 ), $record, $requestAPI/Endpoints/ServeAttachmentEndpoint.php:88
order_updates_for_woo_before_update_customer_note$note_id, $update_id, $note, $requestAPI/Endpoints/UpdateCustomerNoteEndpoint.php:142
order_updates_for_woo_before_update_internal_note$note_id, $update_id, $note, $requestAPI/Endpoints/UpdateUpdateNoteEndpoint.php:118
order_updates_for_woo_before_update_save$validated, $update_data, $requestAPI/Endpoints/SaveUpdateEndpoint.php:128
order_updates_for_woo_before_upload_attachment$validated, $context, $requestAPI/Endpoints/UploadAttachmentEndpoint.php:85
order_updates_for_woo_customer_notes_before_thread$update_idAdmin/Orders/Templates/card/note-thread.php:68
order_updates_for_woo_customer_order_summary_after$summaryFrontend/OrderUpdates/Views/CustomerOrderSummaryView.php:107
order_updates_for_woo_email_actionFrontend/Notifications/Templates/order-update-notification.php:141
order_updates_for_woo_form_meta$settingsAdmin/Orders/Views/OrderUpdateFormView.php:96
order_updates_for_woo_rating_followup_email_action$is_promoter, $stars, $orderFrontend/Notifications/Templates/rating-followup.php:81
order_updates_for_woo_status_changed$update_id, $old_status_key, $new_status_key, $changed_by, $note_idShared/Updates/OrderUpdatesDb.php:406
order_updates_for_woo_update_card_actions$raw, $settingsAdmin/Orders/Templates/card/header.php:58
order_updates_for_woo_update_card_after_details$raw, $settingsAdmin/Orders/Views/OrderUpdateCardViewModern.php:156
order_updates_for_woo_update_card_before_details$raw, $settingsAdmin/Orders/Views/OrderUpdateCardViewModern.php:144
order_updates_for_woo_update_card_tabs$raw, $settingsAdmin/Orders/Templates/card/tabs.php:92
order_updates_for_woo_update_changed$insert_idShared/Updates/OrderUpdatesDb.php:200
order_updates_for_woo_update_deleted$update_idShared/Updates/OrderUpdatesDb.php:724

Filters (71)

HookArgumentsFires from
order_updates_for_woo_action_history_response$response, $update_id, $requestAPI/Endpoints/UpdateActionHistoryEndpoint.php:59
order_updates_for_woo_add_customer_note_response$response, $requestAPI/Endpoints/AddCustomerNoteEndpoint.php:162
order_updates_for_woo_add_internal_note_response$response, $requestAPI/Endpoints/AddUpdateNoteEndpoint.php:138
order_updates_for_woo_admin_email_detail_rows[ [ 'label' => __('Assigned to', 'order-updates-for-woo'), 'value' => Assignee…Admin/Notifications/Emails/AdminOrderUpdateEmail.php:127
order_updates_for_woo_admin_labels$labelsShared/Language/Labels/strings.php:143
order_updates_for_woo_admin_strings$this->get_labels(Admin/Orders/Services/OrderEditorPanelService.php:145
order_updates_for_woo_analytics_assignees_response$response, $requestAPI/Endpoints/Analytics/GetAnalyticsAssigneesEndpoint.php:41
order_updates_for_woo_analytics_by_date_response$response, $requestAPI/Endpoints/Analytics/GetAnalyticsByDateEndpoint.php:41
order_updates_for_woo_analytics_products_response$response, $requestAPI/Endpoints/Analytics/GetAnalyticsProductsEndpoint.php:41
order_updates_for_woo_analytics_summary_response$response, $requestAPI/Endpoints/Analytics/GetAnalyticsSummaryEndpoint.php:41
order_updates_for_woo_api_endpoint_params$params, $path, $methodsAdmin/Settings/Services/ApiSettingsService.php:191
order_updates_for_woo_api_endpoint_summary'', $path, $methodsAdmin/Settings/Services/ApiSettingsService.php:212
order_updates_for_woo_assigned_line__('Not assigned yet', 'order-updates-for-woo'), $resolved_updateHelpers/AssigneeHelper.php:35
order_updates_for_woo_assignee_email_detail_rows$detail_rows, $this->order_update, $this->order, $thisAdmin/Notifications/Emails/AssigneeOrderUpdateEmail.php:274
order_updates_for_woo_assignee_rotation_member$member, $is_activeAdmin/Settings/Fields/AssigneeRotationField.php:171
order_updates_for_woo_assignee_search_responsearray(), $query, $requestAPI/Endpoints/AssigneeSearchEndpoint.php:83
order_updates_for_woo_attachment_deletefalse, $record, $attachment_idShared/Attachments/AttachmentService.php:269
order_updates_for_woo_attachment_storage_handlernull, $file, $contextShared/Attachments/AttachmentService.php:151
order_updates_for_woo_attachment_upload_context$context, $validated, $requestAPI/Endpoints/UploadAttachmentEndpoint.php:83
order_updates_for_woo_attachment_urlself::build_url( $id, $context ), $row, $contextHelpers/AttachmentPresenter.php:19
order_updates_for_woo_change_status_response$response, $requestAPI/Endpoints/ChangeUpdateStatusEndpoint.php:133
order_updates_for_woo_color_icon'', $resolved_updateHelpers/UpdatePresentationHelper.php:12
order_updates_for_woo_created_line$created_line, $resolved_updateHelpers/UpdateAuthorHelper.php:71
order_updates_for_woo_customer_creator_label__('Customer', 'order-updates-for-woo'), $resolved_updateHelpers/UpdateAuthorHelper.php:20
order_updates_for_woo_customer_email_detail_rows$base_detail_rows, $this->order_update, $this->order, $thisFrontend/Notifications/Emails/CustomerOrderUpdateEmail.php:122
order_updates_for_woo_customer_note_author_label$author_label, $note, $is_staff, $customer_user_idFrontend/OrderUpdates/Services/CustomerOrderUpdatesService.php:236
order_updates_for_woo_customer_note_payload$note, $update_id, $requestAPI/Endpoints/UpdateCustomerNoteEndpoint.php:129
order_updates_for_woo_customer_order_summary$summary, $orderFrontend/OrderUpdates/Services/CustomerOrderUpdatesService.php:415
order_updates_for_woo_customer_rating_response$response, $requestAPI/Endpoints/SubmitRatingEndpoint.php:225
order_updates_for_woo_customer_reply_admin_bar_recipients$recipients, $update_id, $contextAdmin/AdminBar/AdminBarNotifications.php:104
order_updates_for_woo_customer_submit_response$response, $requestAPI/Endpoints/SubmitCustomerUpdateEndpoint.php:501
order_updates_for_woo_customer_update_line__('Customer - hidden, notified at -', 'order-updates-for-woo'), $resolved_upd…Helpers/CustomerHelper.php:24
order_updates_for_woo_delete_attachment_responsearray( 'deleted' => true, 'id' => $attachment_id ), $record, $requestAPI/Endpoints/DeleteAttachmentEndpoint.php:70
order_updates_for_woo_delete_internal_note_responsearray( 'message' => __( 'Note deleted.', 'order-updates-for-woo' ), 'noteId' =…API/Endpoints/DeleteUpdateNoteEndpoint.php:106
order_updates_for_woo_delete_update_response$response, $requestAPI/Endpoints/DeleteUpdateEndpoint.php:107
order_updates_for_woo_get_customer_note_history_response$response, $note_id, $requestAPI/Endpoints/GetCustomerNoteHistoryEndpoint.php:92
order_updates_for_woo_get_customer_notes_response$response, $update_id, $requestAPI/Endpoints/GetCustomerNotesEndpoint.php:94
order_updates_for_woo_get_update_notes_response$response, $update_id, $requestAPI/Endpoints/GetUpdateNotesEndpoint.php:100
order_updates_for_woo_heartbeat_admin_bar_responsearray( 'count' => count( $notifications ), 'items' => $this->build_items_for_j…Admin/AdminBar/AdminBarNotifications.php:475
order_updates_for_woo_heartbeat_notes_response$result, $since_mapAdmin/Orders/AdminHeartbeatHandler.php:141
order_updates_for_woo_internal_note_payload$note, $update_id, $requestAPI/Endpoints/AddUpdateNoteEndpoint.php:86
order_updates_for_woo_mark_solved_response$response, $requestAPI/Endpoints/MarkSolvedEndpoint.php:97
order_updates_for_woo_mention_email_detail_rows[ [ 'label' => __( 'Created by', 'order-updates-for-woo' ), 'value' => UpdateA…Admin/Notifications/Emails/InternalMentionEmail.php:61
order_updates_for_woo_notify_customer_response$response, $requestAPI/Endpoints/NotifyCustomerEndpoint.php:111
order_updates_for_woo_order_updates_list_response$response, $order_id, $requestAPI/Endpoints/OrderUpdatesListEndpoint.php:90
order_updates_for_woo_participant_email_detail_rowsarray( array( 'label' => __( 'Assigned to', 'order-updates-for-woo' ), 'value'…Admin/Notifications/Emails/ParticipantUpdateEmail.php:89
order_updates_for_woo_poll_customer_thread_response$cached, $order_id, $requestAPI/Endpoints/PollCustomerThreadEndpoint.php:104
order_updates_for_woo_poll_interval_maxConstants::POLL_INTERVAL_MAX_SECONDSFrontend/OrderUpdates/OrderUpdatesShortcode.php:214
order_updates_for_woo_poll_interval_midConstants::POLL_INTERVAL_MID_SECONDSFrontend/OrderUpdates/OrderUpdatesShortcode.php:213
order_updates_for_woo_poll_interval_minConstants::POLL_INTERVAL_MIN_SECONDSFrontend/OrderUpdates/OrderUpdatesShortcode.php:212
order_updates_for_woo_previous_customer_notes_response$response, $update_id, $requestAPI/Endpoints/GetPreviousCustomerNotesEndpoint.php:90
order_updates_for_woo_rating_followup_promoter_threshold(int) get_option( Constants::RATING_FOLLOWUP_PROMOTER_MIN_OPTION, Constants::R…Frontend/Notifications/Emails/CustomerRatingFollowupEmail.php:62
order_updates_for_woo_rating_request_email_detail_rowsarray(), $this->order_update, $this->order, $thisFrontend/Notifications/Emails/CustomerRatingRequestEmail.php:51
order_updates_for_woo_rating_share_links$links, $site_name, $site_url, $share_textHelpers/RatingShareLinks.php:68
order_updates_for_woo_realtime_configarray(), $order_idFrontend/OrderUpdates/OrderUpdatesShortcode.php:215
order_updates_for_woo_reopen_update_response$response, $requestAPI/Endpoints/ReopenUpdateEndpoint.php:125
order_updates_for_woo_save_customer_email_preference_response$response, $requestAPI/Endpoints/SaveEmailPreferenceEndpoint.php:83
order_updates_for_woo_save_staff_email_preference_response$response, $requestAPI/Endpoints/SaveStaffEmailPreferenceEndpoint.php:68
order_updates_for_woo_save_update_response$response, $updated_record, $requestAPI/Endpoints/SaveUpdateEndpoint.php:190
order_updates_for_woo_settings_section_controllers$this->sectionsAdmin/Settings/OrderUpdatesSettingsController.php:186
order_updates_for_woo_single_update_response$response, $update_id, $requestAPI/Endpoints/SingleOrderUpdateEndpoint.php:72
order_updates_for_woo_solved_line$solved_line, $resolved_updateHelpers/UpdateStatusHelper.php:41
order_updates_for_woo_solved_line_formatted$solved_line, $resolved_updateHelpers/UpdateStatusHelper.php:72
order_updates_for_woo_staff_reply_admin_bar_recipients$recipients, $update_id, $sender_user_idAdmin/AdminBar/AdminBarNotifications.php:126
order_updates_for_woo_template_override_candidates$candidates, $view, $relativeHelpers/View.php:108
order_updates_for_woo_update_card_variables[ 'raw' => $order_update, 'formatted' => $formatted, 'rating' => $rating, 'par…Shared/Updates/UpdateCardVariableParser.php:33
order_updates_for_woo_update_customer_note_response$response, $requestAPI/Endpoints/UpdateCustomerNoteEndpoint.php:168
order_updates_for_woo_update_dataarray( 'order_id' => $validated['order_id'], 'title' => $validated['title'], '…API/Endpoints/SaveUpdateEndpoint.php:116
order_updates_for_woo_update_internal_note_response$response, $requestAPI/Endpoints/UpdateUpdateNoteEndpoint.php:144
order_updates_for_woo_upload_attachment_response$response, $stored, $requestAPI/Endpoints/UploadAttachmentEndpoint.php:99
order_updates_for_woo_validation_rules$update_rulesShared/Validation/validationRules.php:48