I’m trying to reorder the user settings page fields. I’ve successfully used this php for the vendor submit
add_filter('hivepress/v1/forms/vendor_submit',
function( $form ) {
// Reorder the fields based on the desired order
$form['fields']['image']['_order'] = 10; // Profile Image
$form['fields']['location']['_order'] = 20; // Location
$form['fields']['profiledescription']['_order'] = 150; // Profile Description
$form['fields']['booking_days']['_order'] = 180; // Appointment Days
$form['fields']['booking_min_time']['_order'] = 190; // Appointment Available From
$form['fields']['booking_max_time']['_order'] = 200; // Appointment Available To
$form['fields']['booking_timezone']['_order'] = 210; // Appointment Timezone
$form['fields']['booking_offset']['_order'] = 211; // Appointment Offset
$form['fields']['booking_window']['_order'] = 212; // Appointment Window
$form['fields']['booking_slot_interval']['_order'] = 220; // Appointment Slot Interval
$form['fields']['booking_import_url']['_order'] = 230; // Appointment Import URL
$form['fields']['booking_export_url']['_order'] = 240; // Appointment Export URL
return $form;
},
10000
);
` So, naturally I tried
add_filter('hivepress/v1/forms/user_settings',
function( $form ) {
// Reorder the fields based on the desired order
$form['fields']['image']['_order'] = 10; // Profile Image
$form['fields']['location']['_order'] = 20; // Location
$form['fields']['profiledescription']['_order'] = 150; // Profile Description
$form['fields']['booking_days']['_order'] = 180; // Appointment Days
$form['fields']['booking_min_time']['_order'] = 190; // Appointment Available From
$form['fields']['booking_max_time']['_order'] = 200; // Appointment Available To
$form['fields']['booking_timezone']['_order'] = 210; // Appointment Timezone
$form['fields']['booking_offset']['_order'] = 211; // Appointment Offset
$form['fields']['booking_window']['_order'] = 212; // Appointment Window
$form['fields']['booking_slot_interval']['_order'] = 220; // Appointment Slot Interval
$form['fields']['booking_import_url']['_order'] = 230; // Appointment Import URL
$form['fields']['booking_export_url']['_order'] = 240; // Appointment Export URL
return $form;
},
10000
);
but, it’s not working for the user settings form fields.