apply_filters( 'clanbite_team_challenge_upload_max_bytes', int $max_bytes, int $team_id, WP_REST_Request $request )Filters the maximum size of a guest challenge logo upload.
Filter PHP
Parameters
$max_bytes(int)Maximum size in bytes (default 2 MB).
$team_id(int)Challenged team post ID.
$request(WP_REST_Request)Upload request.
Example
add_filter( 'clanbite_team_challenge_upload_max_bytes', function ( $max_bytes, $team_id, $request ) {
// Change $max_bytes here.
return $max_bytes;
}, 10, 3 );Defined in inc/extensions/teams/class-team-challenges.php
Changelog
| Version | Description |
|---|---|
| 1.3.0 | Introduced. |