Find Jobs
Hire Freelancers

solve this code

$10-30 USD

Completed
Posted over 3 years ago

$10-30 USD

Paid on delivery
i try to make code for change user role after user submit entry according to Quiz score I use gravity forms with Quiz Add-On this code I want to solve and work add_action( 'GFQuiz', 'change_role', 10, 4 ); function change_role( $user_id, $feed, $entry, $user_pass ) { //set the role based on data submitted, test form has 3 drop downs with the text true and false as the options //change this based on your fields/data $form = GFAPI::get_form( $entry['form_id'] ); if ( $form['id'] != 1 ) { return; } if ( 'gquiz_score' > 4 ) { //update role $user_obj = new WP_User( $user_id ); $user_obj->set_role( 'all' ); } else { $user_obj = new WP_User( $user_id ); $user_obj->set_role( 'analzye' ); } }
Project ID: 27976314

About the project

7 proposals
Remote project
Active 3 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
I have imense experience in gravity form. Kindly check my reviews. My reviews show the quality of the services that I am offering to my clients. Also, kindly check my Portfolio site [login to view URL] I have also created a featured rich POS (Point of Sale) web application that shows my programming capability. Here is the demo link. [login to view URL] Username: admin Password: admin123
$30 USD in 1 day
5.0 (325 reviews)
6.9
6.9
7 freelancers are bidding on average $26 USD for this job
User Avatar
Hi sir, I have included on your project. I have 5 years experience on Web application development... Hire me... thanks
$30 USD in 1 day
5.0 (5 reviews)
3.0
3.0
User Avatar
I have read your project description and i am interested in it. I am expert with WordPress, design, plugins, forms, templates, theme customization... Also i speak English and Arabic fluently. So I hope you take my proposal in consideration. Kind regards.
$30 USD in 1 day
5.0 (4 reviews)
2.1
2.1

About the client

Flag of EGYPT
Shebin Elkom, Egypt
5.0
30
Payment method verified
Member since Mar 11, 2016

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.