- This topic has 8 replies, 3 voices, and was last updated 10 months, 3 weeks ago by .
-
Topic
-
Hi Anh
Sorry for my limited PHP knowledge. Please help me.
I create meta box.
add_filter( 'rwmb_meta_boxes', 'your_prefix_register_meta_boxes' ); function your_prefix_register_meta_boxes( $meta_boxes ) { $meta_boxes[] = array ( 'title' => 'My Form', 'id' => 'my_form', 'post_types' => array( 0 => 'post', ), 'context' => 'normal', 'priority' => 'high', 'fields' => array( array ( 'id' => 'phone', 'type' => 'text', 'name' => 'Phone', ), ), ); return $meta_boxes; }
Create new page – and add shortcode.
[mb_frontend_form id ="my_form" post_fields="title" edit=true]
I setup – only subscribers can submit form.
How can I allow – to edit the form data which is submitted by that author?
I think if other figures out the link pattern
/?rwmb-form-submitted=my_form&rwmb-post-id=357
with post-id=xxx at the end, form data can be easily changed even they are not that post author.Thank you Anh.
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- You must be logged in to reply to this topic.