Skip to content

Instantly share code, notes, and snippets.

@hivepress
Created April 27, 2022 09:02
Show Gist options
  • Save hivepress/7619c9e524f624ea24313af7af678c66 to your computer and use it in GitHub Desktop.
Save hivepress/7619c9e524f624ea24313af7af678c66 to your computer and use it in GitHub Desktop.
Change maximum length of title and description for listings #hivepress #listings
<?php
add_filter(
'hivepress/v1/models/listing',
function( $model ) {
$model['fields']['title']['max_length'] = 123;
$model['fields']['description']['max_length'] = 123;
return $model;
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment