# Image Guidelines Note in the Upload Screens

> Shows a short note with your image rules, such as recommended sizes, file types and the need for alt text, right inside the media uploader and Media > Add New screen.

- Type: PHP
- Runs: Admin only
- Category: [Media](https://wpide.com/library/category/media/)
- Tags: uploads, guidelines, editorial
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/media-upload-guidance/

## Code

```php
// Guidance shown under the upload area.
$wpide_upload_guidance = '<strong>Before uploading:</strong> photos at least 1600px wide, under 500 KB, JPEG or WebP. Name files descriptively and always fill in the alt text.';

add_action( 'post-upload-ui', function () use ( $wpide_upload_guidance ) {
    printf(
        '<p class="wpide-upload-guidance" style="max-width:600px;margin:1em auto;padding:.75em 1em;background:#f0f6fc;border-left:4px solid #2271b1;text-align:left">%s</p>',
        wp_kses( $wpide_upload_guidance, array( 'strong' => array(), 'em' => array(), 'a' => array( 'href' => true, 'target' => true ), 'br' => array() ) )
    );
} );
```

## Notes

Edit $wpide_upload_guidance; basic HTML such as strong and a links is allowed.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Image Guidelines Note in the Upload Screens" 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/
