Description
Deprecated 3.3.0! Use wpmem_resetpassword_form_defaults instead
This hook allows you to override the defaults for the password reset form. While there are four elements in the array, it is not recommended that you change the “action” or the “inputs” values. The “action” value determines what action is being handled by the form, and the “inputs” can be filtered more directly with wpmem_inc_resetpassword_inputs.
$defaults = array( 'heading' => "Reset Forgotten Password", 'button_text' => "Reset Password", 'action' => "pwdreset", 'inputs' => $default_inputs );Parameters
$args
(array) (required) An array of arguments that are to override form $defaults.Changelog
Introduced in version 2.9.0
Source
wpmem_inc_resetpassword_args is located in forms.php
Usage
add_filter( 'wpmem_inc_resetpassword_args', 'my_resetpassword_args' ); function my_resetpassword_args( $args ) { /** * This example changes the heading * and button text. */ $args = array( 'heading' => "Request New Password", 'button_text' => "Reset My Password" ); return $args; }Code Snippet Library [Subscriber Content]
See a list of all filter and action hooks