Cannot save custom fields
-
Hello,
As mentionned in jtrollia’s thread, I have similar problems regarding custom fields.
It seems that they do not register at all. No trace in the database.Even when I use the basic example you give in the docs.
add_action( 'wpas_submission_form_inside_after_subject', 'my_upload_field_frontend', 1 ); function my_upload_field_frontend() { wpas_add_custom_field( 'my_custom_field', array( 'title' => __( 'My Custom Field', 'awesome-support' ) ) ); }
Same if I use the plugins_loaded action hook :
add_action( 'plugins_loaded', 'wpas_user_custom_fields' ); function wpas_user_custom_fields() { if ( function_exists( 'wpas_add_custom_field' ) ) { wpas_add_custom_field( 'my_custom_field', array( 'title' => __( 'My Custom Field', 'awesome-support' ) ) ); } }
In the first case, fields show up in the form.
In the second case, it does not.
But in both case, nothing is saved in the database.The custom field metabox in the admin area exists but remains empty.
Thanks for your Help,
JM
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Cannot save custom fields’ is closed to new replies.