fc_enable_dark_mode_styles
Type: Filter
Filters whether dark mode styles are applied.
Signature
apply_filters( 'fc_enable_dark_mode_styles', $enabled );
Parameters
| Name | Type | Description |
|---|---|---|
$enabled | string | Whether the feature is enabled. |
Since
3.0.3
Source: inc/design-templates.php
Examples
add_filter( 'fc_enable_dark_mode_styles',
/**
* Enable dark mode.
*
* @param string $enabled Whether the feature is enabled.
* @return string Filtered value.
*/
function( $enabled ) {
return true;
},
10
);