Can I restrict adding images of listings?

Default can add no limit.

I want to restrict images maxim three images.

Can I do this implementetion.

hi, add this in functions.php

add_filter(
'hivepress/v1/models/listing',
function( $model ) {
$model['fields']['images']['max_files'] = 03;

return $model;
},
100
);

Thank you!
I can become it!!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.