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'
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; } }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |
User Contributed Notes User Contributed Notes
Permalink: