Skip to content

Instantly share code, notes, and snippets.

@hivepress
Created April 26, 2022 21:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hivepress/ac0637b664e762f9f130db7ce818ddda to your computer and use it in GitHub Desktop.
Save hivepress/ac0637b664e762f9f130db7ce818ddda to your computer and use it in GitHub Desktop.
Change the maximum number of images per request #hivepress #requests
<?php
add_filter(
'hivepress/v1/models/request',
function( $model ) {
$model['fields']['images']['max_files'] = 123;
return $model;
},
100
);
@renemgit
Copy link

renemgit commented Feb 3, 2023

Is this still working? Because i added the code to function.php but nothing changed....

@hivepress
Copy link
Author

Yes, it should be ok but note that this snippet is for requests, not for listings.

@renemgit
Copy link

renemgit commented Feb 4, 2023

You're right my bad thanks :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment