Como passar o valor do campo do repetidor para ajax e php wordpress?

Repeater field

Submit post //In funcitons.php //ajax submit post add_action( 'wp_ajax_nopriv_add_post', 'add_post' ); add_action( 'wp_ajax_add_post', 'add_post' ); function add_post(){ $permission = check_ajax_referer( 'add_post_nonce', 'nonce', false ); $user_id = get_current_user_id(); $add_property = array( 'post_author' => $user_id, 'post_title' => $_POST['posttitle'], 'post_content' => $_POST['description'], 'post_status' => 'pending', 'post_type' => 'realhousez_property' ); $post_id = wp_insert_post( $add_property ); foreach($_FILES['images']['name'] as $key=>$val){ echo "die"; die(); } //here i should recieve the repeater loop and saving below this format if ( $_POST['gallery'] ) { // Build array for saving post meta $gallery_data = array(); for ($i = 0; $i true, 'message'=>__('Your post was successfully added.', 'blog'))); }else{ echo json_encode(array('save'=>false, 'message'=>__('Error in adding post.', 'blog'))); } die(); }

Solutions Collecting From Web of "Como passar o valor do campo do repetidor para ajax e php wordpress?"