Set post status based on user role
add_filter( ‘frm_new_post’, ‘set_post_status’, 10, 2 ); function set_post_status( $post, $args ) { if ( $args[‘form’]->id == 68 ) { //change 68 to the ID of your form $role = $_POST[‘item_meta’][41065]; //Change 41065 to the ID of the hidden field with…Continue reading