Frontend Uploader: Award Points For Uploading Files and Photos

Home / Code Snippets / Frontend Uploader: Award Points For Uploading Files and Photos

Reward your users for uploading files and photos, using Frontend Uploader. This awards the current logged in user 3 points upon the upload successfully completing. This action runs after form is uploaded.

add_action( 'fu_upload_result', 'my_fu_upload_result', 10, 2 );
function my_fu_upload_result( $layout, $result ) {
	// MyCRED award points for uploads Frontend Uploader
	echo do_shortcode( '[mycred_give amount="3" log="Upload Reward" ref="upload_reward"]' );	
}

Add this code snippet to your theme's functions.php file, or to a custom plugin.This awards the current logged in user 3 points upon the upload successfully completing. This action runs after form is uploaded.

Leave a Reply

Spin to win points 💰
Kindly get back to your previous orientation view... your wheel is rolling there...

Do you really like this awesome addon and wanna use on your site? click here to get it now 👍
myCRED Fortune Wheel special offer unlocked!
You have a chance to win free tokens. Are you feeling lucky? Give it a spin.
* You can spin the wheel only once in a month.
* You can spin again any time by paying 500 points
* Once you pay for spin you are not able to refund it.
You must login to play mycred fortune wheel
11