Last active
August 22, 2025 17:21
-
-
Save hivepress/847da5ecfe798084d43a232f791419c5 to your computer and use it in GitHub Desktop.
Change the maximum number of images per listing #hivepress #listings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter( | |
| 'hivepress/v1/models/listing', | |
| function( $model ) { | |
| $model['fields']['images']['max_files'] = 123; | |
| return $model; | |
| }, | |
| 100 | |
| ); |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The code snippet is still valid, please make sure that you changed 123 to a lower number and tested uploading more images than the set limit. If you want to monetize the image limit, you can consider the Memberships extension.