# learnpress/4.4.8/inc/ExternalPlugin/Elementor/Widgets/RegisterUserFormElementor.php

LearnPress – WordPress LMS Plugin for Create and Sell Online Courses, version 4.4.8. 50 lines.

- Page: https://pluginprobe.com/plugins/learnpress/4.4.8/code/inc/ExternalPlugin/Elementor/Widgets/RegisterUserFormElementor.php
- Raw: https://pluginprobe.com/plugins/learnpress/4.4.8/raw/inc/ExternalPlugin/Elementor/Widgets/RegisterUserFormElementor.php
- Modified: 2026-09-18T11:22:50+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/learnpress/4.4.8/code/inc/ExternalPlugin/Elementor/Widgets/RegisterUserFormElementor.php#L10-L20`.

```php
<?php
/**
 * Class SingleInstructorElementor
 *
 * @sicne 4.2.3
 * @version 1.0.0
 */

namespace LearnPress\ExternalPlugin\Elementor\Widgets;

use Elementor\Plugin;
use LearnPress\ExternalPlugin\Elementor\LPElementorWidgetBase;
use LearnPress\Helpers\Config;

class RegisterUserFormElementor extends LPElementorWidgetBase {
	public function __construct( $data = [], $args = null ) {
		$this->title    = esc_html__( 'Register Form', 'learnpress' );
		$this->name     = 'register_form';
		$this->keywords = [ 'register' ];
		$this->icon     = 'eicon-lock-user';
		parent::__construct( $data, $args );
	}

	protected function register_controls() {
		$this->controls = Config::instance()->get( 'register-user-form', 'elementor' );
		parent::register_controls();
	}

	public function render() {
		try {
			learn_press_show_message();
			$settings = $this->get_settings_for_display();

			if ( class_exists( '\Elementor\Plugin' ) && Plugin::$instance->editor->is_edit_mode() ) {
				learn_press_get_template( 'global/form-register.php' );
			} else {
				\LearnPress::instance()->template( 'profile' )->register_form();
			}
		} catch ( \Throwable $e ) {
			error_log( __METHOD__ . ' ' . $e->getMessage() );
		}
	}

	public function get_style_depends() {
		wp_register_style( 'learnpress', LP_PLUGIN_URL . 'assets/css/learnpress.css', array(), uniqid() );

		return array( 'learnpress' );
	}
}

```
