Hi there,
When I add a title in the back end, it populates up with ‘Auto Draft’ within the box.
I was wondering is there a snippet that could populate 'placeholder text in the title with SEO guidance so that users using the self serve and adding their own listings in the front end will see this placeholder text. (If this comes through in the back end too - happy days, as it will serve as a reminder back end and front end if possible. But front end is the priority.)
My categories are too varied to work with attributes for an auto generated title. So leaving it flexible but with placeholder guidance would be ideal.
Can you help please?
I have seen this snippet code. But I don’t know what this field is called to amend?
add_filter(
‘hivepress/v1/forms/listing_update’,
function( $form ) {
$form[‘fields’][‘description’][‘placeholder’] = ‘custom text here’;
$form[‘fields’][‘title’][‘placeholder’] = ‘custom text here’;
return $form;
},
1000
);