Skip to content

Instantly share code, notes, and snippets.

@hivepress
Created February 20, 2023 22:59
  • Star 0 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/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