Skip to content

Instantly share code, notes, and snippets.

@theukedge
Created September 14, 2013 21:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theukedge/6565910 to your computer and use it in GitHub Desktop.
Save theukedge/6565910 to your computer and use it in GitHub Desktop.
<?php
// SEND ACCESS LEVEL TO GRAVITY FORMS
function get_access_level(){
global $user_ID;
$plan_id = rcp_get_subscription_id( $user_ID );
$access_level = rcp_get_subscription_access_level( $plan_id );
return $access_level;
}
add_filter('gform_field_value_access_level', create_function("", '$value = get_access_level(); return $value;' ));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment