woocommerce_blueprint_upload_max_file_size
Filters the maximum allowed file size for blueprint uploads.
Usage
add_filter( 'woocommerce_blueprint_upload_max_file_size', 'wp_kama_woocommerce_blueprint_upload_max_file_size_filter' );
/**
* Function for `woocommerce_blueprint_upload_max_file_size` filter-hook.
*
* @param int $max_size Maximum file size in bytes.
*
* @return int
*/
function wp_kama_woocommerce_blueprint_upload_max_file_size_filter( $max_size ){
// filter...
return $max_size;
}
- $max_size(int)
- Maximum file size in bytes.
Changelog
| Since 9.3.0 | Introduced. |
Where the hook is called
woocommerce_blueprint_upload_max_file_size
woocommerce/src/Admin/Features/Blueprint/RestApi.php 60
return apply_filters( 'woocommerce_blueprint_upload_max_file_size', self::MAX_FILE_SIZE );