Class
Class used to implement the form object.
Methods
-
__construct()Create a new instance.
-
add_attribute()Add an attribute.
-
add_error()Add an error.
-
add_field()Add a field.
-
add_link()Add a link.
-
get_action()Get the form action.
-
get_attribute()Get an attribute.
-
get_attributes()Get all attributes.
-
get_errors()Get the errors.
-
get_field()Get a field.
-
get_fields()Get all fields.
-
get_link()Get a link.
-
get_links()Get all links.
-
get_method()Get the form method.
-
get_name()Get the form name.
-
has_errors()Determine if the form has errors.
-
remove_attribute()Remove an attribute.
-
remove_field()Remove a field.
-
remove_link()Remove a link.
-
render()Render the entire form with notices and links.
-
render_errors()Render the errors.
-
render_form()Render the form element.
-
render_links()Render the links.
-
set_action()Set the form action.
-
set_errors()Set the errors.
-
set_method()Set the form method.
-
set_name()protectedSet the form name.
Properties
-
$actionstring protected - The form action.
-
$attributesarray protected - The form attributes.
-
$errorsWP_Error protected - The form errors.
-
$fieldsarray protected - The form fields.
-
$linksarray protected - The form links.
-
$methodstring protected - The form method.
-
$namestring protected - The form name.
-
$render_argsarray public - The arguments used for rendering the field.
Source
View src/includes/class-theme-my-login-form.php, line 15 on GitHub
Changelog
| Version | Description |
|---|---|
| 7.0 | Introduced. |