Automattic\WooCommerce\EmailEditor\Engine
Site_Style_Sync_Controller::get_base_theme_value
Get value from base theme by path
Method of the class: Site_Style_Sync_Controller{}
No Hooks.
Returns
String|null. Value from base theme or null if not found.
Usage
// private - for code of main (parent) class only $result = $this->get_base_theme_value( $path ): ?string;
- $path(array) (required)
- Path array for _wp_array_get (e.g., ['styles',
'typography', 'fontSize']).
Site_Style_Sync_Controller::get_base_theme_value() Site Style Sync Controller::get base theme value code WC 10.7.0
private function get_base_theme_value( array $path ): ?string {
if ( ! $this->base_theme_data ) {
return null;
}
$value = _wp_array_get( $this->base_theme_data, $path );
return is_string( $value ) ? $value : null;
}