Description
This filter allows you to pass arguments to the error message function to override default values that are used in constructing error messages. The defaults consist of the html wrappers and the toggle that tells the function what error message is being displayed.
$defaults = array( 'div_before' => '<div class="wpmem_msg" align="center">', 'div_after' => '</div>', 'p_before' => '<p>', 'p_after' => '</p>', 'toggles' => array( 'user', 'email', 'success', 'editsuccess', 'pwdchangerr', 'pwdchangesuccess', 'pwdreseterr', 'pwdresetsuccess' ) );
Parameters
$args
(array) (required) An array of arguments that are to override form $defaults.
Changelog
Introduced in version 2.9.0
Source
wpmem_msg_args is located in wp-members-dialogs.php
Usage
add_filter( 'wpmem_msg_args', 'my_msg_form_args' ); function wpmem_msg_args( $args ) { /** * This example changes the div wrapper to * a different/custom class (default is .wpmem_msg). */ return $args['div_before'] = '<div class="my_msg_class">'; }
See a list of all filter and action hooks