Custom fields not saving/displaying
-
Hello,
Thanks for your plugin.
I’m following your doc to create and save a new field.
So far, the field is showing in frontend with the following code:
function awesomesupport_custom( ) { $checkbox = array( 'title' => 'SMS optin', 'field_type' => 'checkbox', 'options' => array( 'option1' => 'Reply by SMS' ), 'capability' => 'edit_ticket' ); if ( function_exists( 'wpas_add_custom_field' ) ) { wpas_add_custom_field( 'sms_optin', $checkbox ); } add_action( 'wpas_submission_form_inside_after_subject', 'awesomesupport_custom', 1 );
However, the field is not saved and is not showing in admin/ticket thread. I tried to
var_dump
the$post
variable in the ticket detail page but I can’t find the field value.What did I miss?
Alternatively, can you provide an integration example of
save_callback
?Thanks
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Custom fields not saving/displaying’ is closed to new replies.