Description
This filter lets you add or change any attributes, used for messages/notices.
Only available on the account page (for now, due to blatantly forgetting it).
Arguments
- $attributes(array) - The current attributes for that page.
Return
(array) An array of attributes which is used by the form that calls the attributes
Usage
function b3_override_attributes( $attributes ) {
$attributes[messages][] = 'Your message';
return $attributes;
}
add_filter( 'b3_attributes', 'b3_override_attributes' );
Used in
- includes/class-b3-shortcodes.php - line 139
- includes/class-b3-shortcodes.php - line 222
- includes/class-b3-shortcodes.php - line 264
- includes/class-b3-shortcodes.php - line 303
- includes/class-b3-shortcodes.php - line 354
- includes/class-b3-shortcodes.php - line 404