Astra_Ext_White_Label_Markup::get_whitelabel_string( String $product, String $key, mixed $default = false )
Get individual whitelabel setting.
Description
Parameters
- $product
-
(String) (Required) Product Slug for which whitelabel value is to be received.
- $key
-
(String) (Required) whitelabel key to be received from the database.
- $default
-
(mixed) (Optional) default value to be returned if the whitelabel value is not set by user.
Default value: false
Return
(mixed.)
Source
File: classes/class-astra-ext-white-label-markup.php
public static function get_whitelabel_string( $product, $key, $default = false ) { $constant = self::branding_key_to_constant( $product, $key ); if ( defined( $constant ) ) { return constant( $constant ); } $whitelabel_settings = self::get_white_labels(); if ( isset( $whitelabel_settings[ $product ][ $key ] ) && '' !== $whitelabel_settings[ $product ][ $key ] ) { return $whitelabel_settings[ $product ][ $key ]; } return $default; }
Expand full source code Collapse full source code View on Trac