Authorizer Shortcode

Below, you’ll find a detailed guide on how to add the Authorizer Shortcode to your WordPress website, including its parameters, examples, and PHP function code. Additionally, we’ll assist you with common issues that might cause the Authorizer Plugin shortcode not to show or not to work correctly.

Before starting, here is an overview of the Authorizer Plugin and the shortcodes it provides:

Plugin Icon
Authorizer

"Authorizer is a powerful WordPress plugin that enhances site security. It provides advanced user authentication, effectively limiting login attempts and preventing unauthorized access."

★★★★★ (17) Active Installs: 4000+ Tested with: 6.2.3 PHP Version: 7.2.5
Included Shortcodes:
  • [authorizer_login_form]

Authorizer [authorizer_login_form] Shortcode

The ‘authorizer_login_form’ shortcode is a powerful tool that facilitates user login. It enqueues scripts and styles, adds external service links, and loads footer JavaScript for the login form.

Shortcode: [authorizer_login_form]

Examples and Usage

Basic example – An instance of the Authorizer login form shortcode without any parameters.

[authorizer_login_form /]

PHP Function Code

In case you have difficulties debugging what causing issues with [authorizer_login_form] shortcode, check below the related PHP functions code.

Shortcode line:

add_shortcode( 'authorizer_login_form', array( Login_Form::get_instance(), 'shortcode_authorizer_login_form' ) );

Shortcode PHP function:

function shortcode_authorizer_login_form() {
		ob_start();

		$this->login_enqueue_scripts_and_styles();
		$this->login_form_add_external_service_links();
		$this->load_login_footer_js();

		wp_login_form();

		return ob_get_clean();
	}

Code file location:

authorizer/authorizer/src/authorizer/class-wp-plugin-authorizer.php

Conclusion

Now that you’ve learned how to embed the Authorizer Plugin shortcode, understood the parameters, and seen code examples, it’s easy to use and debug any issue that might cause it to ‘not work’. If you still have difficulties with it, don’t hesitate to leave a comment below.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *