woocommerce_hex_darker

The WooCommerce woocommerce hex darker function.

Description

woocommerce_hex_darker( $color, (int) $factor = 30 ); 

Parameters (2)

0. $color
The color.
1. $factor — Optional. (int) => 30
The factor.

Usage

  1. if ( !function_exists( 'woocommerce_hex_darker' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-deprecated-functions.php'; 
  3.  
  4. // The color. 
  5. $color = null; 
  6.  
  7. // The factor. 
  8. $factor = 30; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = woocommerce_hex_darker($color, $factor); 
  12.  

Defined (1)

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

/includes/wc-deprecated-functions.php  
  1. function woocommerce_hex_darker( $color, $factor = 30 ) { 
  2. wc_deprecated_function( __FUNCTION__, '3.0', 'wc_hex_darker' ); 
  3. return wc_hex_darker( $color, $factor );