latex_get_default_color

The Jetpack by WordPress.com latex get default color function.

Description

latex_get_default_color( $color, (string) $default_color = 'ffffff' ); 

Parameters (2)

0. $color
The color.
1. $default_color — Optional. (string) => 'ffffff'
The default color.

Usage

  1. if ( !function_exists( 'latex_get_default_color' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/latex.php'; 
  3.  
  4. // The color. 
  5. $color = null; 
  6.  
  7. // The default color. 
  8. $default_color = 'ffffff'; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = latex_get_default_color($color, $default_color); 
  12.  

Defined (1)

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

/modules/latex.php  
  1. function latex_get_default_color( $color, $default_color = 'ffffff' ) { 
  2. global $themecolors; 
  3. return isset($themecolors[$color]) ? $themecolors[$color] : $default_color;