WP Accessibility icon
Utilities

WP Accessibility hooks reference

  • By Joe Dolson
  • v2.4.5
  • Updated

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.

functions.phpyour child theme
// 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

  • wp-accessibility.php line 423 · used in 2 places
    /**
     * 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
    wp-accessibility.php line 440 · used in 2 places
    /**
     * Customize the default value for sitemap skiplink. Turns on sitemap skiplink
     * options in WP Accessibility versions > 1.9.0.
     */
    apply_filters( 'asl_sitemap', '' );
  • wp-accessibility-toolbar.php line 97 · used in 2 places
    /**
     * Filter the URL to the stylesheet controlling large font views.
     */
    apply_filters( 'wpa_fontsize_css', '' );
  • wp-accessibility-alt.php line 134
    /**
     * Filter array of case insensitive strings that make alt text suspicious.
     */
    apply_filters( 'wpa_case_insensitive', $case_insensitive );
  • wp-accessibility-alt.php line 148
    /**
     * Filter array of case sensitive strings that make alt text suspicious.
     */
    apply_filters( 'wpa_case_sensitive', $case_sensitive );
  • wp-accessibility.php line 552
    /**
     * Filter whether automatic labeling is enabled.
     */
    apply_filters( 'wpa_disable_labels', $apply_labels );
  • wp-accessibility-stats.php line 212
    /**
     * Filter the URL returned for the current URL.
     */
    apply_filters( 'wpa_get_current_url', $current_url );
  • wpa_labels

    filter
    wp-accessibility.php line 466
    /**
     * Customize labels passed to automatically label core WordPress fields.
     */
    apply_filters( 'wpa_labels', $labels );
  • wpa_long_alt

    filter
    wp-accessibility-alt.php line 94
    /**
     * What length of an alt text is considered long. Default `140`.
     */
    apply_filters( 'wpa_long_alt', 140 );
  • wp-accessibility-toolbar.php line 195
    /**
     * Filter attachment location of the toolbar. Default `body`.
     */
    apply_filters( 'wpa_move_toolbar', $default );
  • wp-accessibility.php line 563
    /**
     * 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 );
  • wp-accessibility-stats.php line 158
    /**
     * Run when a new statistic is recorded.
     */
    do_action( 'wpa_save_stats_post', $stat, $stats, $post_ID );
  • wp-accessibility-stats.php line 125
    /**
     * Run when a statistic that has already been recorded in the database is
     * updated.
     */
    do_action( 'wpa_save_stats_update', $exists, $stats );
  • wp-accessibility.php line 507
    /**
     * 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=""])' );
  • wp-accessibility-stats.php line 463
    /**
     * Filter the data displayed about a given stats point.
     */
    apply_filters( 'wpa_stats_data_point', $return, $post, $type );
  • wp-accessibility.php line 1028
    /**
     * Filter the heading text for content summaries. Default `Summary`.
     */
    apply_filters( 'wpa_summary_heading', __( 'Summary', 'wp-accessibility' ), $post_id );
  • wp-accessibility.php line 1039
    /**
     * Filter the heading level for content summaries. Default `h2`.
     */
    apply_filters( 'wpa_summary_heading_level', 'h2', $post_id );
  • wp-accessibility-toolbar.php line 85
    /**
     * Filter URL for toolbar CSS.
     */
    apply_filters( 'wpa_toolbar_css', plugins_url( 'toolbar/css/a11y.css', __FILE__ ) );
  • wp-accessibility.php line 541
    /**
     * Filter whether data from views will be tracked.
     */
    apply_filters( 'wpa_track_view_statistics', $track );
  • wp-accessibility.php line 519
    /**
     * Filter target element selector for underlines. Default `a`.
     */
    apply_filters( 'wpa_underline_target', 'a' );
  • wp-accessibility.php line 529
    /**
     * 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
    wp-accessibility.php line 574
    /**
     * Filter whether WP Accessibility manipulates the viewport.
     */
    apply_filters( 'wpa_viewport', $set_viewport );
  • widget_title

    filter
    class-wp-accessibility-toolbar.php line 50
    apply_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: