b3_attributes()

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

  1. function b3_override_attributes( $attributes ) {
  2.     $attributes[messages][] = 'Your message';
  3.     return $attributes;
  4. }
  5. add_filter( 'b3_attributes', 'b3_override_attributes' );

Used in

Tags