Description
DEPRECATED as of 3.3.0. Use wpmem_login_form_defaults instead.
This hook allows you to override the defaults for the login 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_login_inputs.
$defaults = array( 'heading' => "Existing Users Log In", // Comes from $wpmem->get_text( 'login_heading' ) 'button_text' => "Log In", // Comes from $wpmem->get_text( 'login_button' ) 'action' => "login", 'inputs' => $default_inputs, // Filtered by 'wpmem_inc_login_inputs' 'redirect_to' => $redirect_to, );
Parameters
$args
(array) (required) An array of arguments that are to override form $defaults.
Usage
add_filter( 'wpmem_inc_login_args', 'my_login_args' ); function my_login_args( $args ) { // This example changes the button text. $args = array( 'button_text' => "Log Me In" ); return $args; }
Changelog
Introduced in version 2.9.0
Deprecated as of 3.3.0, use wpmem_login_form_defaults instead
Source
wpmem_inc_login_args is located in /includes/class-wp-members-forms.php