LifterLMS Gravity Forms Filters

llms_gform_ajax_redirect_url

# Top

Description

Allows developers to customize the redirect link of a Gravity Form embedded into a lesson. Only functions when AJAX form submission is enabled for the form.

Parameters

Parameter Type Description
$url string The target URL for the redirect
$lesson_id int WP post ID of the lesson where the form is embedded
$redirect_id int WP post ID used to obtain $url

llms_gform_ajax_redirect_delay

# Top

Description

Customize the time to wait after displaying a Gravity Forms Confirmation message before redirecting the user to the redirect url defined by llms_gform_ajax_redirect_url.

Parameters

Parameter Type Description
$time int Time, in milliseconds, to wait

 

llms_gform_present

# Top

Description

Store whether or not a LifterLMS Lesson is Gravity Forms powered. This filter is called during the WordPress core `save_post_lesson` action.

Parameters

Parameter Type Description
$present string Whether or not a form is present, should be either “yes” or “no” for default functionality
$post_id int WP Post ID of the lesson being saved

llms_gforms_has_addon

# Top

Description

Used internally for LifterLMS Gravity Forms to determine if a Gravity Form Extension (like User Registration) is installed and activated. This allows for us to program conditions only when the necessary extensions are available.

Parameters

Parameter Type Description
$result bool True if the extension is enabled, false otherwise
$addon string A string which identifies the addon being checked for, eg: “user-registration”
Last Updated on
Was this article helpful?