Actions and filters
Browse every plugin-owned WordPress action and filter, including parameters, versions and source locations.
WP Trip Summary 0.3.3 exposes 51 plugin-owned hooks: 37 filters and 14 actions. The reference below is rendered from the local copy of the upstream hooks-inventory.json, which is extracted from inline PHP documentation.
Use add_filter() or add_action() and set accepted_args to the number of parameters your callback receives. For filters, return the filtered first parameter unless the individual contract says otherwise. An Unstable notice identifies a contract that may change during the ongoing namespace migration.
The plugin repository owns both the structured inventory and the generated prose reference. Update the local copy when the upstream inventory changes.
Hook reference
Front-end Viewer
abp01_is_post_trip_summary_protected
filter · since 0.3.3
Filters whether to suppress the front-end trip summary viewer for the current post. Runs before automatic attachment to the post content and before shortcode rendering. The initial value is true only when post_password_required($postId) returns true for the current request. Callbacks can override this decision for the given post. Only a literal boolean true suppresses the viewer: the content filter returns its incoming content unchanged and the shortcode returns an empty string. Any other result allows the normal viewer rendering checks to continue.
| Parameter | Type | Description |
|---|---|---|
$isProtected | bool | Whether to suppress the trip summary viewer in the current request. |
$postId | int | The identifier of the post whose trip summary is being checked. |
Dispatch: apply_filters in lib/Auth.php:161 ↗
abp01_get_frotend_theme_class
filter · since 0.3.2
Unstable: Susceptible to breaking changes due to PSR-4 migration
Filters the class used as theme decorator. Must implement Abp01_FrontendTheme. If the result is not a string or the string does not represent a valid class, the default theme decorator is used: Abp01_FrontendTheme_Decorator.
| Parameter | Type | Description |
|---|---|---|
$frontendThemeClass | string | The theme class decorator FQN |
Dispatch: apply_filters in lib/View.php:91 ↗
abp01_additional_frontend_viewer_tabs
filter · since 0.3.2
Filters the additional front-end viewer tabs. It cannot be used to modify the existing ones. The initial value is an empty array. Non-array results are discarded. Must be an array with tab codes as keys and, for each key, an array with a mandatory "label" key as values. Other keys are valid, but left alone. Post ID can be an positive integer or a null value. If a null value is passed, all available tabs should be provided, since this is called from the settings page where the default selected tab is configured.
| Parameter | Type | Description |
|---|---|---|
$postId | ?int | The post ID or null |
Dispatch: apply_filters in lib/Viewer.php:103 ↗
abp01_jsonld_frontend_data_enabled
filter · since 0.3.3
Filters whether to output JSON-LD frontend data for the given post. Defaults to the value of the corresponding plug-in setting. Result is converted such that only boolean true enables the output.
| Parameter | Type | Description |
|---|---|---|
$enabled | bool | Whether or not the JSON-LD frontend data output is enabled |
$postId | int | The post identifier |
Dispatch: apply_filters in lib/pluginModules/JsonLdFrontendDataPluginModule.php:107 ↗
abp01_should_render_frontend_route_log_meta
filter · since 0.3.2
Filters whether to display metadata for each front-end trip summary route log item. Defaults to true. Only a literal boolean true enables the metadata.
| Parameter | Type | Description |
|---|---|---|
$showMeta | bool | True to show the metadata information, false otherwise |
$viewerData | stdClass | The complete front-end viewer data for the current post. |
Dispatch: apply_filters in lib/pluginModules/RouteLogPluginModule.php:240 ↗
abp01_info_item_field_icon_mapping
filter · since 0.3.3
Filters the icon identifier assigned to each front-end trip summary information field. The array is keyed by information field name and each value is an icon identifier. Built-in identifiers are represented by the ABP01_INFO_ITEM_ICON_* constants. Custom identifiers may also be used when matching trusted SVG markup is registered through the abp01_info_item_icons filter. A field mapped to an identifier that is not present in the icon registry is rendered without an icon. The filtered mapping is cached for the remainder of the request. Non-array and empty-array results are ignored in favor of the defaults.
Dispatch: apply_filters in views/helpers/controls.frontend.php:317 ↗
abp01_info_item_icons
filter · since 0.3.3
Filters the SVG element markup used for front-end trip summary information icons. The array is keyed by icon identifier and each value contains the inner markup inserted unescaped into the common 24x24 SVG wrapper. Icon identifiers are resolved through the info item field-to-icon mapping. The filtered array is cached for the remainder of the request. Non-array and empty-array results are ignored in favor of the defaults. Callbacks must provide trusted SVG element markup.
Dispatch: apply_filters in views/helpers/controls.frontend.php:392 ↗
abp01_show_frontend_viewer_credits
filter · since 0.3.3
Filters whether to display the front-end viewer credits. Runs at the beginning of the viewer template. Defaults to true; the result is converted to boolean. Returning false omits the entire credits container, independently of whether the bottom teaser is enabled.
| Parameter | Type | Description |
|---|---|---|
$showCredits | bool | Whether to display the credits. Defaults to true. |
$data | stdClass | The complete front-end viewer data for the current post. |
Dispatch: apply_filters in views/wpts-frontend.php:54 ↗
abp01_show_frontend_viewer_subtitle
filter · since 0.3.3
Filters the subtitle displayed below the front-end viewer title. Defaults to null, which omits the subtitle element. Any non-null result renders the element, including an empty string. The text is HTML-escaped.
| Parameter | Type | Description |
|---|---|---|
$subtitle | string|null | The subtitle text, or null to omit the element. |
$data | stdClass | The complete front-end viewer data for the current post. |
Dispatch: apply_filters in views/wpts-frontend.php:70 ↗
abp01_additional_frontend_viewer_tab_content
action · since 0.3.0
Fires when the content container for an additional front-end viewer tab is rendered. The action fires once for every tab registered through the abp01_additional_frontend_viewer_tabs filter. Callbacks should inspect the tab identifier and output safe HTML only for the tabs they handle. The output is rendered directly inside the corresponding tab content container.
| Parameter | Type | Description |
|---|---|---|
$tabId | string | The identifier of the additional tab being rendered. |
$data | stdClass | The complete front-end viewer data for the current post. |
Dispatch: do_action in views/wpts-frontend.php:204 ↗
Installer
abp01_install_tables_definitions
filter · since 0.3.0
Filters custom database table definitions installed alongside the built-in tables. Initial value is an empty array. Each entry must use the table name as its key and a CREATE TABLE statement as its value. Non-array results are discarded. Built-in definitions are merged afterwards, so a custom definition cannot override a built-in table with the same name.
Dispatch: apply_filters in lib/installer/step/InstallSchema.php:107 ↗
abp01_installer_do_post_install
action · since 0.3.0
Unstable: Susceptible to breaking changes due to PSR-4 migration
Fires after the plug-in installation attempt has finished. The hook runs after either a successful or failed installation, provided the pre-install hook allowed the process to start. Callbacks can inspect the context to determine the installation result and access any collected errors. An uncaught callback exception is recorded as a hook error but does not change that result.
| Parameter | Type | Description |
|---|---|---|
$context | Abp01_Installer_Context | Installer context containing the completed operation status and collected errors. |
Dispatch: Abp01_Installer_Service_RunInstallHook in lib/installer/step/RunPostInstallHooks.php:54 ↗
abp01_installer_do_post_uninstall
action · since 0.3.0
Unstable: Susceptible to breaking changes due to PSR-4 migration
Fires after the plug-in uninstallation process has finished. Callbacks can inspect the installer context to determine whether the operation completed successfully and access any collected errors.
| Parameter | Type | Description |
|---|---|---|
$context | Abp01_Installer_Context | The current installer context. |
Dispatch: Abp01_Installer_Service_RunInstallHook in lib/installer/step/RunPostUninstallHooks.php:51 ↗
abp01_installer_do_pre_install
action · since 0.3.0
Unstable: Susceptible to breaking changes due to PSR-4 migration
Fires before the plug-in installation process starts. Callbacks can inspect or modify the installer context. Adding an operation error to the context prevents installation from starting. An uncaught callback exception is captured as a hook error and also aborts installation.
| Parameter | Type | Description |
|---|---|---|
$context | Abp01_Installer_Context | Mutable installer context used to determine whether installation may proceed. |
Dispatch: Abp01_Installer_Service_RunInstallHook in lib/installer/step/RunPreInstallHooks.php:53 ↗
abp01_installer_do_pre_uninstall
action · since 0.3.0
Unstable: Susceptible to breaking changes due to PSR-4 migration
Fires before the plug-in uninstallation process starts. Callbacks can inspect the installer context to determine whether the operation currently has any errors.
| Parameter | Type | Description |
|---|---|---|
$context | Abp01_Installer_Context | The current installer context. |
Dispatch: Abp01_Installer_Service_RunInstallHook in lib/installer/step/RunPreUninstallHooks.php:51 ↗
abp01_uninstall_table_names
filter · since 0.3.3
Filters custom database table names dropped during uninstallation. Initial value is an empty array. Return an array whose values are non-empty table name strings; keys are ignored. Custom tables are processed in the order provided. Invalid entries are removed. Empty or non-array results are ignored, and built-in tables are always appended to the final list, so the filter cannot remove built-in tables from the drop list.
| Parameter | Type | Description |
|---|---|---|
$customTables | string[] | Custom table names. |
$ownTables | string[] | Built-in table names in drop order. |
Dispatch: apply_filters in lib/installer/step/UninstallSchema.php:93 ↗
Log Management
abp01_get_logger_config_rotate_logs
filter · since 0.3.2
Filters whether or not to rotate logs. Initial value is either the value of boolean constant ABP01_LOGS_ROTATE, if defined, or true by default. Only a literal boolean true enables rotation.
| Parameter | Type | Description |
|---|---|---|
$rotateLogs | bool | Whether logs should be rotated. |
Dispatch: apply_filters in abp01-plugin-functions.php:214 ↗
abp01_get_logger_config_max_log_files
filter · since 0.3.2
Filters the number of rotated log files to retain. Initial and default value is either the value of the integer constant ABP01_LOGS_MAX_LOG_FILES, if defined, or 10 by default. Automatically converted to integer. Zero and negative filtered values reset to the configured default. To retain unlimited files, set ABP01_LOGS_MAX_LOG_FILES to 0; returning 0 from this filter alone does not override a positive configured default.
| Parameter | Type | Description |
|---|---|---|
$maxLogFiles | int | The configured maximum number of rotated log files. |
Dispatch: apply_filters in abp01-plugin-functions.php:238 ↗
abp01_get_logger_class
filter · since 0.3.1
Unstable: Susceptible to breaking changes due to PSR-4 migration
Filters the class used to create the plug-in logger. The initial value is Abp01_Logger_MonologLogger. A custom class must be a concrete implementation of Abp01_Logger and accept an Abp01_Logger_Config instance as its constructor argument. Return an existing class name: the value is passed directly to class_implements(). Existing classes that do not implement Abp01_Logger, abstract classes, and constructors that throw an Exception fall back to the default logger. Invalid names or other thrown errors are not guaranteed to be handled.
| Parameter | Type | Description |
|---|---|---|
$loggerClass | string | The logger implementation class name. |
Dispatch: apply_filters in lib/logger/Manager.php:79 ↗
abp01_customize_monolog_logger
action · since 0.3.2
Fires after the Monolog logger has been configured and before it is cached for use. Callbacks can customize the logger instance by adding or changing handlers, processors, and other Monolog configuration.
| Parameter | Type | Description |
|---|---|---|
$logger | \Monolog\Logger | The configured Monolog logger instance. |
Dispatch: do_action in lib/logger/MonologLogger.php:83 ↗
abp01_max_displayable_log_file_size
filter · since 0.3.2
Filters the maximum log file size that the system logs viewer displays in full. The initial value, in bytes, is the effective log tail line count multiplied by 512. Files exceeding the resulting size are trimmed and only their trailing lines are displayed. The filtered value is converted to an integer; zero and negative values are ignored in favor of the initial value.
| Parameter | Type | Description |
|---|---|---|
$maxSize | int | The maximum file size, in bytes, to display in full. |
Dispatch: apply_filters in lib/pluginModules/SystemLogsManagementPluginModule.php:250 ↗
abp01_log_file_display_tail_line_count
filter · since 0.3.2
Filters the number of trailing lines displayed for an oversized log file. The initial value is 512, or the value of the ABP01_LOG_FILE_DISPLAY_TAIL_LINE_COUNT constant when defined. The filtered value is converted to an integer; zero and negative values fall back to 512. This value also contributes to the default maximum displayable file size.
| Parameter | Type | Description |
|---|---|---|
$tailLineCount | int | The number of trailing log lines to display. |
Dispatch: apply_filters in lib/pluginModules/SystemLogsManagementPluginModule.php:280 ↗
Lookup Types Management
abp01_get_lookup_type_label
filter · since 0.3.2
Filters the label for a lookup type. The initial value is the translated lookup type label, or null for an unknown type. The filtered result is returned without further normalization.
| Parameter | Type | Description |
|---|---|---|
$translatedLabel | string|null | The translated label, or null for an unknown type. |
$type | string | The lookup type, as defined by the Abp01_Lookup class. |
Dispatch: apply_filters in abp01-plugin-functions.php:579 ↗
Maintenance Tools
abp01_enable_clear_cache_maintenance_tool
filter · since 0.2.8
Filters whether the built-in clear track data cache maintenance tool is available. Initial value is true. Only the boolean value true keeps the tool available.
| Parameter | Type | Description |
|---|---|---|
$enabled | bool | Whether the clear track data cache maintenance tool is available. |
Dispatch: apply_filters in lib/Plugin.php:461 ↗
abp01_enable_clear_all_data_maintenance_tool
filter · since 0.2.8
Filters whether the built-in clear all trip summary data maintenance tool is available. Initial value is true. Only the boolean value true keeps the tool available.
| Parameter | Type | Description |
|---|---|---|
$enabled | bool | Whether the clear all trip summary data maintenance tool is available. |
Dispatch: apply_filters in lib/Plugin.php:475 ↗
abp01_enable_detect_missing_tracks_maintenance_tool
filter · since 0.2.8
Filters whether the built-in detect missing track files maintenance tool is available. Initial value is true. Only the boolean value true keeps the tool available.
| Parameter | Type | Description |
|---|---|---|
$enabled | bool | Whether the detect missing track files maintenance tool is available. |
Dispatch: apply_filters in lib/Plugin.php:489 ↗
abp01_get_additional_maintenance_tools
filter · since 0.3.2
Unstable: Susceptible to breaking changes due to PSR-4 migration
Filters the list of additional maintenance tools, on top of the built-in ones. Initial value is an empty array. If result is not an array, it will be reset to an empty array. Entries which are not instance of Abp01_MaintenanceTool will be removed, nulls included.
| Parameter | Type | Description |
|---|---|---|
$tools | Abp01_MaintenanceTool[] | The current list of additional tools. |
Dispatch: apply_filters in lib/Plugin.php:512 ↗
abp01_render_maintenance_tool_result
filter · since 0.2.8
Unstable: Susceptible to breaking changes due to PSR-4 migration
Filters the rendered content returned after a maintenance tool has executed. The initial value is the rendered result template, an empty string when no matching result template exists, or false when rendering fails. Returning an empty or false value prevents result content from being displayed.
| Parameter | Type | Description |
|---|---|---|
$renderedResult | string|false | The rendered maintenance tool result. |
$toolId | string | The executed maintenance tool identifier. |
$result | Abp01_MaintenanceTool_Result | The maintenance tool execution result. |
Dispatch: apply_filters in lib/pluginModules/MaintenancePluginModule.php:184 ↗
Plugin Modules
abp01_get_injectable_service_factories
filter · since 0.2.6
Unstable: Susceptible to breaking changes due to PSR-4 migration
Filters the service factories available for plugin module dependency injection. The array is keyed by dependency class name. Each value is a zero-argument callable that returns the corresponding service instance. Callbacks may add, replace, or remove factories before the plugin module activator is created. An empty array or a value of another type is ignored in favor of the defaults.
| Parameter | Type | Description |
|---|---|---|
$pluginModuleHost | Abp01_PluginModules_PluginModuleHost | The plugin module host requesting the factories. |
Dispatch: apply_filters in lib/pluginModules/PluginModuleHost.php:109 ↗
REST API
abp01_add_trip_summary_to_rest_api
filter · since 0.3.0
Filters whether to register the read-only wpts_trip_summary field on supported post types in the WordPress REST API. Defaults to true. Only a literal boolean true enables registration.
| Parameter | Type | Description |
|---|---|---|
$shouldAddTripSummaryToRestAPI | bool | True if it should be added, false otherwise |
Dispatch: apply_filters in lib/pluginModules/RestApiEnhancementsPluginModule.php:74 ↗
abp01_add_trip_summary_to_rest_api_listing
filter · since 0.3.0
Filters whether to add trip summary data for each post when the request is for a post listing. Defaults to false. Only a literal boolean true includes the data in listings; otherwise the registered field returns null for those requests.
| Parameter | Type | Description |
|---|---|---|
$shouldAddTripSummaryToRestApiListing | bool | True to add, false otherwise. |
Dispatch: apply_filters in lib/pluginModules/RestApiEnhancementsPluginModule.php:136 ↗
Settings - Trip Summary Map
abp01_predefined_tile_layers
filter · since 0.3.2
Unstable: Susceptible to breaking changes due to PSR-4 migration
Filters the list of available pre-defined tile layers offered as options when configuring the tile layer used for the viewer. The return value must be a non-empty array of Abp01_Settings_PredefinedTileLayer instances. Invalid elements are filtered out. If the resulting value is an empty array, the default list is used instead.
| Parameter | Type | Description |
|---|---|---|
$predefinedTileLayers | Abp01_Settings_PredefinedTileLayer[] | The list of pre-defined tile layers. |
Dispatch: apply_filters in lib/settings/PredefinedTileLayer.php:240 ↗
abp01_default_tile_layer_id
filter · since 0.2.7
Filters the identifier of the pre-defined tile layer selected by default. The initial value is "open-street-map". Callbacks also receive the identifiers available after the pre-defined tile layer list has been filtered. The result must be a non-empty string identifying one of those layers. An empty or non-string result falls back to "open-street-map"; an unknown non-empty string causes default tile layer resolution to fail.
| Parameter | Type | Description |
|---|---|---|
$defaultTileLayerId | string | The default pre-defined tile layer identifier. |
$allTileLayerIds | string[] | The available pre-defined tile layer identifiers. |
Dispatch: apply_filters in lib/settings/PredefinedTileLayer.php:291 ↗
Time Management
abp01_determine_date_format
filter · since 0.3.2
Filters the date format used by the plug-in, optionally including time format. Initial value is the format as returned by date_format option, as well as time_format option, if time format is also required. If result is empty, the initial value will be used.
| Parameter | Type | Description |
|---|---|---|
$format | string | The date format |
$withTime | bool | Whether or not to include time format as well |
Dispatch: apply_filters in abp01-plugin-functions.php:734 ↗
Trip Summary Management
abp01_trip_summary_available_for_post_types
filter · since 0.3.2
Filters the post types for which trip summary is available. Initial value is [ 'post', 'page' ]. Can be empty, but must be array. If non-array returned, initial value will be used.
| Parameter | Type | Description |
|---|---|---|
$postTypes | string[] | The post types for which trip summary is available |
Dispatch: apply_filters in lib/AvailabilityHelper.php:64 ↗
abp01_trip_summary_log_enabled
filter · since 0.3.2
Filters whether the trip summary log feature should be made available. Initial value is either the value of boolean constant ABP01_TRIP_SUMMARY_LOG_ENABLED, if defined, or true if not defined. Only a literal boolean true enables the feature.
| Parameter | Type | Description |
|---|---|---|
$enabled | bool | Whether or not trip summary log is available |
Dispatch: apply_filters in lib/FeatureStatus.php:58 ↗
abp01_formatted_route_type_listing_label
filter · since 0.3.2
Filters the formatted route type label displayed in the post listing. Initial value is a span containing the unformatted label, with the base CSS class abp01-route-type-cell and a route-specific or none modifier class.
| Parameter | Type | Description |
|---|---|---|
$formatted | string | The formatted route type label HTML. |
$postId | int|null | The post identifier. |
$routeType | string|null | The route type code, or null/empty when none is assigned. |
$routeTypeLabel | string|null | The unformatted route type label after filtering. |
Dispatch: apply_filters in lib/display/postListing/TripSummaryRouteTypeColumn.php:73 ↗
abp01_unformatted_route_type_label
filter · since 0.3.2
Filters the unformatted (i.e. no HTML) route type label displayed in the post listing. Initial value is the translated route type label, a dash when no route type is assigned, or null when the route type is unknown. If the return value is not a string, the initial value will be used.
| Parameter | Type | Description |
|---|---|---|
$routeTypeLabel | string|null | The unformatted route type label. |
$postId | int|null | The post identifier. |
$routeType | string|null | The route type code, or null/empty when none is assigned. |
Dispatch: apply_filters in lib/display/postListing/TripSummaryRouteTypeColumn.php:104 ↗
abp01_trip_summary_route_log_default_entry_rider
filter · since 0.3.0
Filters the rider used to prefill a new trip summary route log entry. The initial value is the display name of the current WordPress user. A null result is normalized to an empty string and the final result is converted to string.
| Parameter | Type | Description |
|---|---|---|
$displayName | string | The current WordPress user's display name. |
$postId | int | The ID of the post whose route log is being edited. |
Dispatch: apply_filters in lib/pluginModules/RouteLogPluginModule.php:350 ↗
abp01_trip_summary_route_log_default_entry_date
filter · since 0.3.0
Filters the date used to prefill a new trip summary route log entry. The initial value is the current date in Y-m-d format. A null result is normalized to an empty string and the final result is converted to string.
| Parameter | Type | Description |
|---|---|---|
$defaultDate | string | The current date in Y-m-d format. |
$postId | int | The ID of the post whose route log is being edited. |
Dispatch: apply_filters in lib/pluginModules/RouteLogPluginModule.php:370 ↗
abp01_trip_summary_route_log_default_entry_vehicle
filter · since 0.3.0
Filters the vehicle used to prefill a new trip summary route log entry. The initial value is the last vehicle recorded for the post, or null when no vehicle is available. A null result is normalized to an empty string and the final result is converted to string.
| Parameter | Type | Description |
|---|---|---|
$defaultVehicle | string|null | The last vehicle recorded for the post, if available. |
$postId | int | The ID of the post whose route log is being edited. |
Dispatch: apply_filters in lib/pluginModules/RouteLogPluginModule.php:392 ↗
abp01_trip_summary_log_validate
filter · since 0.3.3
Unstable: Susceptible to breaking changes due to PSR-4 migration
Filters the validation result for a trip summary route log entry. The initial value is the result of the built-in input validation. Result is converted such that only boolean true is considered valid.
| Parameter | Type | Description |
|---|---|---|
$isValid | bool | Whether the log entry is valid. |
$postId | int | The post identifier |
$logEntry | \Abp01_Route_Log_Entry | The log entry to validate |
Dispatch: apply_filters in lib/pluginModules/RouteLogPluginModule.php:500 ↗
abp01_trip_summary_log_before_save_entry
action · since 0.3.0
Unstable: Susceptible to breaking changes due to PSR-4 migration
Fires after validation succeeds and before a trip summary log entry is saved. Callbacks receive the current post identifier and the log entry instance.
| Parameter | Type | Description |
|---|---|---|
$postId | int | The post identifier |
$logEntry | \Abp01_Route_Log_Entry | The log entry instance that is about to be saved |
Dispatch: do_action in lib/pluginModules/RouteLogPluginModule.php:531 ↗
abp01_trip_summary_log_after_save_entry
action · since 0.3.0
Unstable: Susceptible to breaking changes due to PSR-4 migration
Fires after a trip summary log entry save attempt, including an unsuccessful attempt. Callbacks receive the current post identifier, the log entry instance and whether the operation succeeded or not.
| Parameter | Type | Description |
|---|---|---|
$postId | int | The post identifier |
$logEntry | \Abp01_Route_Log_Entry | The log entry instance after the save attempt. |
$success | bool | Whether the save operation succeeded. |
Dispatch: do_action in lib/pluginModules/RouteLogPluginModule.php:558 ↗
abp01_get_track_file_downloader
filter · since 0.3.3
Unstable: Susceptible to breaking changes due to PSR-4 migration
Filters the track file download channel for a given post. Must be a valid Abp01_Transfer_FileDownloader instance. If an invalid value is provided, then the default downloader is used.
| Parameter | Type | Description |
|---|---|---|
$trackFileDownloaderInstance | Abp01_Transfer_FileDownloader | The current track file downloader instance |
$postId | int | The current post ID |
Dispatch: apply_filters in lib/transfer/TrackFileDownloader.php:103 ↗
abp01_before_trip_summary_audit_log
action · since 0.3.0
Unstable: Susceptible to breaking changes due to PSR-4 migration
Fires immediately before the trip summary audit log table is rendered. Callback output is rendered before the opening table element.
| Parameter | Type | Description |
|---|---|---|
$postId | int | The ID of the post whose trip summary audit log is being rendered. |
$data | Abp01_ViewModel_PostAuditLogVm | The audit log view model and rendering context. |
Dispatch: do_action in views/wpts-audit-log.php:55 ↗
abp01_after_trip_summary_info_audit_log
action · since 0.3.0
Unstable: Susceptible to breaking changes due to PSR-4 migration
Fires after the trip summary information audit rows have been rendered. The hook runs inside the table body, immediately before the track audit section. Callback output should consist of valid table row elements.
| Parameter | Type | Description |
|---|---|---|
$postId | int | The ID of the post whose trip summary audit log is being rendered. |
$data | Abp01_ViewModel_PostAuditLogVm | The audit log view model and rendering context. |
Dispatch: do_action in views/wpts-audit-log.php:103 ↗
abp01_after_trip_summary_track_audit_log
action · since 0.3.0
Unstable: Susceptible to breaking changes due to PSR-4 migration
Fires after the trip summary track audit rows have been rendered. The hook runs inside the table body, immediately before its closing tag. Callback output should consist of valid table row elements.
| Parameter | Type | Description |
|---|---|---|
$postId | int | The ID of the post whose trip summary audit log is being rendered. |
$data | Abp01_ViewModel_PostAuditLogVm | The audit log view model and rendering context. |
Dispatch: do_action in views/wpts-audit-log.php:149 ↗
abp01_after_trip_summary_audit_log
action · since 0.3.0
Unstable: Susceptible to breaking changes due to PSR-4 migration
Fires immediately after the trip summary audit log table has been rendered. Callback output is rendered after the closing table element.
| Parameter | Type | Description |
|---|---|---|
$postId | int | The ID of the post whose trip summary audit log is being rendered. |
$data | Abp01_ViewModel_PostAuditLogVm | The audit log view model and rendering context. |
Dispatch: do_action in views/wpts-audit-log.php:168 ↗
abp01_editor_launcher_metabox_before_status
action · since 0.3.0
Fires before the built-in status items in the trip summary editor launcher metabox. Callback output is rendered directly inside the status container, before the trip summary information and track status items.
| Parameter | Type | Description |
|---|---|---|
$data | stdClass | The editor launcher context containing the post ID, trip summary availability flags, and track download URL. |
Dispatch: do_action in views/wpts-editor-launcher-metabox.php:50 ↗
abp01_editor_launcher_metabox_after_status
action · since 0.3.0
Fires after the built-in status items in the trip summary editor launcher metabox. Callback output is rendered directly inside the status container, after the trip summary information and track status items and before the container closes.
| Parameter | Type | Description |
|---|---|---|
$data | stdClass | The editor launcher context containing the post ID, trip summary availability flags, and track download URL. |
Dispatch: do_action in views/wpts-editor-launcher-metabox.php:87 ↗