Created
April 27, 2022 09:02
-
-
Save hivepress/7619c9e524f624ea24313af7af678c66 to your computer and use it in GitHub Desktop.
Change maximum length of title and description for listings #hivepress #listings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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