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.


Top ↑

Parameters Parameters

$status

(string) (Required) Current open registration status.


Top ↑

Return Return

(string)


Top ↑

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';
	}


Top ↑

Changelog Changelog

Changelog
Version Description
5.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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