Skip to content

wpt_upload_image_size

github-actions[bot] edited this page Jun 14, 2026 · 1 revision

Filter the uploaded image size.

Auto-generated Example

add_filter(
   'wpt_upload_image_size',
    function( string ) {
        // Your code here.
        return string;
    }
);

Parameters

  • string $size Name of size targeted for upload. Default 'large' if exists. Other variable names: $size

Returns

string

Files

apply_filters( 'wpt_upload_image_size', $size )

← All Hooks

Clone this wiki locally