audio_player_default_colors

Set the audio player default colors.

Description

apply_filters( 'audio_player_default_colors', (callback) $array ); 

Parameters (1)

0. $array — Optional. (callback) => array( "bg" => "0xF8F8F8", "leftbg" => "0xEEEEEE", "lefticon" => "0x666666", "rightbg" => "0xCCCCCC", "rightbghover" => "0x999999", "righticon" => "0x666666", "righticonhover" => "0xFFFFFF", "text" => "0x666666", "slider" => "0x666666", "track" => "0xFFFFFF", "border" => "0x666666", "loader" => "0x9FFFB8" )
{ The default colors for the audio player in hexidecimal format (e.g. 0x#F8F8F8). @type string $bg Background color. @type string $leftbg Left background color. @type string $lefticon Left icon color. @type string $rightbg Right background color. @type string $rightbghover Right background hover color. @type string $righticon Right icon color. @type string $righticonhover Right icon hover color. @type string $text Text color. @type string $slider Slider color. @type string $track Track color. @type string $border Border color. @type string $loader Loader color.

Usage

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

Defined (1)

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

/modules/shortcodes/audio.php  
  1. $ap_options = apply_filters(