Preflight Handoff Audits 0.16.1 has 4 actions and 14 filters, read directly from its source code on Nov 19, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when Preflight Handoff Audits fires an action
add_action( 'prefhaau_report_screen_actions', function( $results, $timestamp ) {
// Your code runs here.
}, 10, 2 );
// Change a value Preflight Handoff Audits is about to use
add_filter( 'prefhaau_mobile_risk_thresholds', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Filters mobile risk thresholds. */ apply_filters( 'prefhaau_mobile_risk_thresholds', array( 'fixed_width' => 420, 'padding' => 100, ) ); -
/** * Fires in the dashboard header after the built-in report action. */ do_action( 'prefhaau_report_screen_actions', $results, $timestamp ); -
/** * Fires after a Preflight report is rendered. */ do_action( 'prefhaau_after_report_render', $report_context ); -
/** * Fires before a Preflight report is rendered. */ do_action( 'prefhaau_before_report_render', $report_context ); -
/** * Filters score penalty weights. */ apply_filters( 'prefhaau_issue_severity_weights', array( 'deployment_high' => 12, 'deployment_high_cap' => 28, 'deployment_medium' => 5, 'deployment_medium_cap' => 10, 'page_high' => 5, 'page_high_cap' => 30, 'page_medium' => 2, 'page_medium_cap' => 18, 'page_low' => 1, 'page_low_cap' => 8, 'repeated_high' => 4, 'repeated_high_cap' => 8, ) ); -
/** * Filters high-confidence placeholder terms. */ apply_filters( 'prefhaau_placeholder_terms', array( 'lorem ipsum', 'dolor sit amet', 'dummy text', 'sample text', ) ); -
/** * Filters report branding data. */ apply_filters( 'prefhaau_report_branding', $report_context->get_branding(), $report_context ); -
/** * Filters normalized report data before rendering. */ apply_filters( 'prefhaau_report_data', $report_context->get_data(), $report_context ); -
/** * Filters the report sections available to renderers. */ apply_filters( 'prefhaau_report_sections', $sections, $context ); -
/** * Filters the selected report template ID. */ apply_filters( 'prefhaau_report_template', $report_context->get_template(), $report_context ); -
/** * Filters the report templates available to Preflight extensions. */ apply_filters( 'prefhaau_report_templates', $templates, $context ); -
/** * Filters the post types scanned by Preflight. */ apply_filters( 'prefhaau_scan_post_types', $post_types ); -
/** * Filters whether Preflight skips primary-heading checks for a post. */ apply_filters( 'prefhaau_skip_primary_heading_check', $skip, $post ); -
/** * Filters whether Preflight skips short-content checks for a post. */ apply_filters( 'prefhaau_skip_short_content_check', $skip, $post ); -
apply_filters( 'prefhaau_handoff_checklist_tasks', $this->get_default_tasks() ); -
apply_filters( 'the_content', $raw_content ); -
apply_filters( 'wp_sitemaps_enabled', true );
Generated from Preflight Handoff Audits's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: