membership_account_button_color

The Membership 2 membership account button color hook.

Description

apply_filters( 'membership_account_button_color', (string) $blue ); 

Parameters (1)

0. $blue (string) => 'blue'
The blue.

Usage

To run the hook, copy the example below.
  1. $blue = apply_filters( 'membership_account_button_color', $blue ); 
  2.  
  3. if ( !empty( $blue ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the membership_account_button_color callback 
  2. function filter_membership_account_button_color( $blue ) { 
  3. // make filter magic happen here... 
  4. return $blue
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'membership_account_button_color', 'filter_membership_account_button_color', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'membership_account_button_color', 'filter_membership_account_button_color', 10, 1 ); 

Defined (1)

The filter is defined in the following location(s).

/app_old/membershipincludes/includes/account.form.php  
  1. <p><input type="submit" value="<?php _e('Update Account', 'membership'); ?>" class="alignright button <?php echo apply_filters('membership_account_button_color', 'blue'); ?>" name="submit"></p>