Hi, I want to change the ‘maxlength’ property for the title field in the submit listing form, I’m trying this snippet but its not working, any help where am I making a mistake?
add_filter(
'hivepress/v1/models/listing/attributes',
function( $attributes ) {
if ( isset( $attributes['title'] ) ) {
$attributes['title']['edit_field']['maxlength'] = '20';
}
return $attributes;
},
1000
);
Thanks!