LLMS_View_Manager::enable_open_reg( string $status )
Forces open registration on when previewing the registration form
Description Description
If open registration is disabled, adds an action to output an info notice at the start of the form alerting users that they’re viewing a preview.
Parameters Parameters
- $status
-
(string) (Required) Current open registration status.
Return Return
(string)
Source Source
File: includes/class.llms.view.manager.php
public function enable_open_reg( $status ) { if ( ! llms_parse_bool( $status ) ) { add_action( 'lifterlms_register_form_start', array( $this, 'open_reg_notice' ) ); } return 'yes'; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
5.0.0 | Introduced. |