Skip to content

Instantly share code, notes, and snippets.

@hivepress
Last active July 26, 2023 17:23
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save hivepress/2465d4e827fdef0fbcb0dd8d156ab997 to your computer and use it in GitHub Desktop.
Add the Images field description in the listing form #hivepress #listings
<?php
add_filter(
'hivepress/v1/forms/listing_update',
function( $form ) {
if(isset($form['fields']['images'])){
$form['fields']['images']['description'] = 'custom text here';
}
return $form;
},
1000
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment