membership_subscription_button_color

The WordPress Core membership subscription button color hook.

Description

apply_filters( 'membership_subscription_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_subscription_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_subscription_button_color callback 
  2. function filter_membership_subscription_button_color( $blue ) { 
  3. // make filter magic happen here... 
  4. return $blue
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'membership_subscription_button_color', 'filter_membership_subscription_button_color', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'membership_subscription_button_color', 'filter_membership_subscription_button_color', 10, 1 ); 

Defined (7)

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

/app_old/membershipincludes/includes/coupon.form.php  
  1. <input type='submit' class="button <?php echo apply_filters('membership_subscription_button_color', 'blue'); ?>" id="submit_coupon_code" value = '<?php _e('Apply Coupon', 'membership'); ?>' /> 
  1. <input type='submit' class="button <?php echo apply_filters('membership_subscription_button_color', 'blue'); ?>" id="submit_coupon_code" value = '<?php _e('Remove Coupon', 'membership'); ?>' /> 
/app_old/membershipincludes/includes/popover_signup.form.php  
  1. <p><input type="submit" value="<?php _e('Register My Account »', 'membership'); ?>" class="button <?php echo apply_filters('membership_subscription_button_color', 'blue'); ?>" name="register"></p> 
  1. <p><input type="submit" value="<?php _e('Login »', 'membership'); ?>" class="button <?php echo apply_filters('membership_subscription_button_color', 'blue'); ?>" name="register"></p> 
/app_old/membershipincludes/includes/registration.form.php  
  1. <p><input type="submit" value="<?php _e('Register My Account »', 'membership'); ?>" class="alignright button <?php echo apply_filters('membership_subscription_button_color', 'blue'); ?>" name="register"></p> 
/app_old/membershipincludes/includes/subscription.form.php  
  1. $html = "<a href='" . $link . "' class='button " . $class . " " . apply_filters('membership_subscription_button_color', 'blue') . "'>" . $linktext . "</a>"; 
/app_old/membershipincludes/includes/renew.form.php  
  1. $html = "<a href='" . $link . "' class='button " . $class . " " . apply_filters('membership_subscription_button_color', 'blue') . "'>" . $linktext . "</a>";