Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Auto Populate GravityForm Log Entry
- * @version 1.0
- */
- add_filter( 'mycred_run_this', 'mycredpro_prepopulate_form_log', 10, 2 );
- function mycredpro_prepopulate_form_log( $run_this, $request ) {
- // Only applicable for gravity form submissions
- if ( $run_this['ref'] == 'gravity_form_submission' )
- $run_this['entry'] = 'Points for submitting a form';
- return $run_this;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement