Automattic\WooCommerce\Admin\Features\Blueprint
RestApi::get_max_file_size
Get maximum allowed file size for blueprint uploads.
Method of the class: RestApi{}
Hooks from the method
Returns
Int
. Maximum file size in bytes
Usage
// protected - for code of main (parent) or child class $result = $this->get_max_file_size();
RestApi::get_max_file_size() RestApi::get max file size code WC 9.9.5
protected function get_max_file_size() { /** * Filters the maximum allowed file size for blueprint uploads. * * @since 9.3.0 * @param int $max_size Maximum file size in bytes. */ return apply_filters( 'woocommerce_blueprint_upload_max_file_size', self::MAX_FILE_SIZE ); }