Login_Shortcode
in package
implements
Registerable, Service
Handles the display and processing of the category login shortcode.
This is used to allow customers to login to their own product category using their category password.
Tags
Interfaces, Classes and Traits
- Registerable
- An object that can be registered with WordPress via the Plugin API, i.e. add_action() and add_filter().
- Service
- Marker interface to denote a service.
Table of Contents
- SHORTCODE = 'category_login'
- $password_form : mixed
- __construct() : mixed
- login_shortcode() : string
- Handles the category login shortcode.
- register() : mixed
Constants
SHORTCODE
public
mixed
SHORTCODE
= 'category_login'
Properties
$password_form
private
mixed
$password_form
Methods
__construct()
public
__construct(Password_Form $password_form) : mixed
Parameters
- $password_form : Password_Form
Return values
mixed —login_shortcode()
Handles the category login shortcode.
public
login_shortcode([array<string|int, mixed> $atts = array() ]) : string
Parameters
- $atts : array<string|int, mixed> = array()
-
The attributes passed in to the shortcode
Return values
string —The shortcode output
register()
public
register() : mixed