LLMS_Access_Plan::get_redirection_url()
Retrieve the full URL to redirect to after successful checkout
Description Description
Return Return
(string)
Source Source
File: includes/models/model.llms.access.plan.php
public function get_redirection_url() { // what type of redirection is set up by user? $redirect_type = $this->get( 'checkout_redirect_type' ); $query_redirection = llms_filter_input( INPUT_GET, 'redirect', FILTER_VALIDATE_URL ); // force redirect querystring parameter over all else. $redirection = ! empty( $query_redirection ) ? $query_redirection : $this->calculate_redirection_url( $redirect_type ); /** * Filter the checkout redirection parameter * * @since 3.30.0 * @version 3.30.0 * * @param string $redirection The calculated url to redirect to. * @param string $redirection_type Available redirection types 'self', 'membership', 'page', 'url' or a custom type. * @param LLMS_Acccess_Plan $this Current Access Plan object. */ return urlencode( apply_filters( 'llms_plan_get_checkout_redirection', $redirection, $redirect_type, $this ) ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.30.0 | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: