Automattic\WooCommerce\EmailEditor\Engine
Site_Style_Sync_Controller::get_base_theme_value
Get value from base theme by path
Метод класса: Site_Style_Sync_Controller{}
Хуков нет.
Возвращает
string|null. Value from base theme or null if not found.
Использование
// private - только в коде основоного (родительского) класса $result = $this->get_base_theme_value( $path ): ?string;
- $path(массив) (обязательный)
- 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 WC 11.2.2
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;
}