Change user role on complete payment
add_action( ‘frm_payment_status_complete’, ‘frm_change_the_role’ ); function frm_change_the_role( $atts ) { $new_role = ‘contributor’; // change contributor to the new user role $entry = isset( $atts[‘entry’] ) ? $atts[‘entry’] : $atts[‘payment’]->item_id; if ( is_numeric( $entry ) ) { $entry = FrmEntry::getOne( $entry…Continue reading