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
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 'notice'.
Default value: 'notice'
Return Return
(void)
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 ) { nocache_headers(); wp_redirect( $redirect ); exit; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |