How to edit the "Gallery" option under the Add Listing page

Hello, I wan’t to edit the “Gallery(optional)” under the “Add Listing” page. i want to add more information like " recommended image width size:1080px or 800px"

Hi,

Use code snippet plugin and add this:

add_filter(
    'hivepress/v1/models/listing',
    function( $model ) {
        // Update the description to only show the recommended image width size
        $model['fields']['images']['description'] = 'Recommended image width size: 1080px or 800px';
        return $model;
    },
    100
);

1 Like

thank you it worked

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