# "Report an Accessibility Problem" Footer Link

> Adds a small link at the bottom of every page inviting visitors to report accessibility barriers by email, with the page address filled in for you.

- Type: PHP
- Runs: Frontend only
- Category: [Accessibility](https://wpide.com/library/category/accessibility/)
- Tags: feedback, footer, email
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/a11y-report-barrier-link/

## Code

```php
// Email address (or contact page URL) for accessibility reports.
$wpide_a11y_contact = get_option( 'admin_email' );

add_action( 'wp_footer', function () use ( $wpide_a11y_contact ) {
    $page = home_url( add_query_arg( array() ) );

    if ( is_email( $wpide_a11y_contact ) ) {
        $url = 'mailto:' . antispambot( $wpide_a11y_contact ) . '?subject=' . rawurlencode( 'Accessibility problem' ) . '&body=' . rawurlencode( "Page: $page\n\nWhat happened:\n" );
    } else {
        $url = add_query_arg( 'page_url', rawurlencode( $page ), $wpide_a11y_contact );
    }

    printf(
        '<p class="wpide-a11y-report" style="text-align:center;font-size:14px;margin:1em 0;"><a href="%s">Report an accessibility problem on this page</a></p>',
        esc_url( $url, array( 'mailto', 'http', 'https' ) )
    );
}, 50 );
```

## Notes

Change $wpide_a11y_contact to a dedicated inbox, or to the URL of a contact page.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find ""Report an Accessibility Problem" Footer Link" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
