I want to allow gif format also for images. How can I do this?
it is working only on the frontend. How can I make this work in the admin dashboard also?
I want to add a description also above or below the “select image” button such as “Only these formats are allowed”. How can I add this?
Please try this PHP snippet
add_filter(
'hivepress/v1/models/listing',
function( $model ) {
$model['fields']['images']['formats'] = [ 'jpg', 'png', 'gif' ];
$model['fields']['images']['description'] = 'Only these formats are allowed '.implode(', ', $model['fields']['images']['formats']);
return $model;
},
100
);
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.