apply_filters( 'learndash_30_custom_colors', array $custom_colors )
Filters default custom colors used in settings to set accent color, progress color, and notifications settings.
Description #
Parameters #
- $custom_colors
-
(array) An Associative array of color name and values in hex code.
Source #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?php /** * Example usage for learndash_30_custom_colors filter. */ add_filter( 'learndash_30_custom_colors', function( $custom_colors ) { // May add any custom logic using $custom_colors. // Always return $custom_colors. return $custom_colors; } );
Changelog #
Version | Description |
---|---|
3.0.0 | Introduced. |