Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

LLMS_Template_Loader::handle_restriction( string $msg = '', string $redirect = '', string $msg_type = 'notice' )

Add a notice and / or redirect during restriction actions


Description Description


Parameters Parameters

$msg

(string) (Optional) notice message to display

Default value: ''

$redirect

(string) (Optional) url to redirect to after setting a notice

Default value: ''

$msg_type

(string) (Optional) type of message to display [notice|success|error|debug]

Default value: 'notice'


Top ↑

Source Source

File: includes/class.llms.template.loader.php

	private function handle_restriction( $msg = '', $redirect = '', $msg_type = 'notice' ) {

		if ( $msg ) {
			llms_add_notice( do_shortcode( $msg ), $msg_type );
		}

		if ( $redirect ) {
			wp_redirect( $redirect );
			exit;
		}

	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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





Permalink: