Save entry ID in custom field
add_filter( ‘frm_new_post’, ‘frm_save_entry_id_to_custom_field’, 10, 2 ); function frm_save_entry_id_to_custom_field( $post, $args ) { if ( $args[‘form’]->id == 25 ) { //change 25 to the ID of your form $post[‘post_custom’][‘my_custom_field’] = $args[‘entry’]->id; } return $post; }Continue reading