Skip to content

Instantly share code, notes, and snippets.

@hivepress
Created April 26, 2022 21:28
Show Gist options
  • Select an option

  • Save hivepress/ac0637b664e762f9f130db7ce818ddda to your computer and use it in GitHub Desktop.

Select an option

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

renemgit commented Feb 3, 2023

Copy link
Copy Markdown

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

@hivepress

Copy link
Copy Markdown
Author

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

@renemgit

renemgit commented Feb 4, 2023

Copy link
Copy Markdown

You're right my bad thanks :-)

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