Skip to content

Instantly share code, notes, and snippets.

@hivepress
Created February 20, 2023 22:59
Show Gist options
  • Save hivepress/b91dccb899791590397cb4deab0032dc to your computer and use it in GitHub Desktop.
Save hivepress/b91dccb899791590397cb4deab0032dc to your computer and use it in GitHub Desktop.
Add description to the price extras in the listing form #hivepress #marketplace
<?php
add_filter(
'hivepress/v1/forms/listing_update',
function( $form ) {
if ( isset( $form['fields']['price_extras'] ) ) {
$form['fields']['price_extras']['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