WP Accessibility 2.4.5 has 2 actions and 22 filters, read directly from its source code on Nov 17, 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 WP Accessibility fires an action
add_action( 'wpa_save_stats_post', function( $stat, $stats, $post_ID ) {
// Your code runs here.
}, 10, 3 );
// Change a value WP Accessibility is about to use
add_filter( 'asl_extra_target', 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
-
asl_extra_target
filter/** * Customize the default value for extra skiplink. Turns on extra skiplink * options in WP Accessibility versions > 1.9.0. */ apply_filters( 'asl_extra_target', '' ); -
asl_sitemap
filter/** * Customize the default value for sitemap skiplink. Turns on sitemap skiplink * options in WP Accessibility versions > 1.9.0. */ apply_filters( 'asl_sitemap', '' ); -
wpa_fontsize_css
filter/** * Filter the URL to the stylesheet controlling large font views. */ apply_filters( 'wpa_fontsize_css', '' ); -
wpa_case_insensitive
filter/** * Filter array of case insensitive strings that make alt text suspicious. */ apply_filters( 'wpa_case_insensitive', $case_insensitive ); -
wpa_case_sensitive
filter/** * Filter array of case sensitive strings that make alt text suspicious. */ apply_filters( 'wpa_case_sensitive', $case_sensitive ); -
wpa_disable_labels
filter/** * Filter whether automatic labeling is enabled. */ apply_filters( 'wpa_disable_labels', $apply_labels ); -
wpa_get_current_url
filter/** * Filter the URL returned for the current URL. */ apply_filters( 'wpa_get_current_url', $current_url ); -
wpa_labels
filter/** * Customize labels passed to automatically label core WordPress fields. */ apply_filters( 'wpa_labels', $labels ); -
wpa_long_alt
filter/** * What length of an alt text is considered long. Default `140`. */ apply_filters( 'wpa_long_alt', 140 ); -
wpa_move_toolbar
filter/** * Filter attachment location of the toolbar. Default `body`. */ apply_filters( 'wpa_move_toolbar', $default ); -
wpa_remove_titles
filter/** * Filter whether title attributes are removed. Used to be image titles only, * now applies buttons and links, as well. */ apply_filters( 'wpa_remove_titles', $remove_titles ); -
wpa_save_stats_post
action/** * Run when a new statistic is recorded. */ do_action( 'wpa_save_stats_post', $stat, $stats, $post_ID ); -
wpa_save_stats_update
action/** * Run when a statistic that has already been recorded in the database is * updated. */ do_action( 'wpa_save_stats_update', $exists, $stats ); -
wpa_show_alt_selector
filter/** * Modify the selector used to attach the alt attribute toggle button on * images. Default `.hentry img[alt!=""], .comment-content img[alt!=""]`. */ apply_filters( 'wpa_show_alt_selector', '.hentry img[alt]:not([alt=""]), .comment-content img[alt]:not([alt=""]), #content img[alt]:not([alt=""]),.entry-content img[alt]:not([alt=""])' ); -
wpa_skiplink_styles
filter/** * Filter CSS styles output on front-end for skip links. */ apply_filters( 'wpa_skiplink_styles', $styles ); -
wpa_stats_data_point
filter/** * Filter the data displayed about a given stats point. */ apply_filters( 'wpa_stats_data_point', $return, $post, $type ); -
wpa_summary_heading
filter/** * Filter the heading text for content summaries. Default `Summary`. */ apply_filters( 'wpa_summary_heading', __( 'Summary', 'wp-accessibility' ), $post_id ); -
wpa_summary_heading_level
filter/** * Filter the heading level for content summaries. Default `h2`. */ apply_filters( 'wpa_summary_heading_level', 'h2', $post_id ); -
wpa_toolbar_css
filter/** * Filter URL for toolbar CSS. */ apply_filters( 'wpa_toolbar_css', plugins_url( 'toolbar/css/a11y.css', __FILE__ ) ); -
wpa_track_view_statistics
filter/** * Filter whether data from views will be tracked. */ apply_filters( 'wpa_track_view_statistics', $track ); -
wpa_underline_target
filter/** * Filter target element selector for underlines. Default `a`. */ apply_filters( 'wpa_underline_target', 'a' ); -
wpa_view_remediation_logs
filter/** * Filter whether console log messages about remediation actions will be sent. */ apply_filters( 'wpa_view_remediation_logs', current_user_can( 'manage_options' ) ); -
wpa_viewport
filter/** * Filter whether WP Accessibility manipulates the viewport. */ apply_filters( 'wpa_viewport', $set_viewport ); -
widget_title
filterapply_filters( 'widget_title', ( empty( $instance['title'] ) ? false : $instance['title'] ), $instance, $args );
Generated from WP Accessibility's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Can't find the right hook?
We can build the customisation for you. Describe what you need: