BSF_Analytics::is_white_label_enabled( string $source )
Check if WHITE label is enabled for BSF products.
Description
Parameters
- $source
-
(string) (Required) source of analytics.
Return
(bool)
Source
File: inc/lib/bsf-analytics/class-bsf-analytics.php
public function is_white_label_enabled( $source ) {
$options = apply_filters( $source . '_white_label_options', array() );
$is_enabled = false;
if ( is_array( $options ) ) {
foreach ( $options as $option ) {
if ( true === $option ) {
$is_enabled = true;
break;
}
}
}
return $is_enabled;
}
Expand full source code Collapse full source code View on Trac
Changelog
| Version | Description |
|---|---|
| 1.0.0 | Introduced. |