llms_get_checkout_redirection_types( string $product_type = '' )

Get an array of available course/membership checkout redirection options


Parameters Parameters

$product_type

(string) (Optional) The product type, Course or Membership

Default value: ''


Top ↑

Return Return

(array)


Top ↑

Source Source

File: includes/admin/llms.functions.admin.php

function llms_get_checkout_redirection_types( $product_type = '' ) {

	$product_type = empty( $product_type ) ? __( 'Course/Membership', 'lifterlms' ) : $product_type;

	return apply_filters(
		'llms_checkout_redirection_types',
		array(
			'self' => sprintf( __( '(Default) Return to %s', 'lifterlms' ), $product_type ),
			'page' => __( 'Redirect to a WordPress Page', 'lifterlms' ),
			'url'  => __( 'Redirect to a custom URL', 'lifterlms' ),
		)
	);
}


Top ↑

Changelog Changelog

Changelog
Version Description
3.30.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.