Automattic\WooCommerce\EmailEditor\Engine

Theme_Controller::get_stylesheet_from_context │ public │ WC 1.0

Get stylesheet from context.

Метод класса: Theme_Controller{}

Хуков нет.

Возвращает

string.

Использование

$Theme_Controller = new Theme_Controller();
$Theme_Controller->get_stylesheet_from_context( $context, $options ): string;
$context(строка) (обязательный)
Context.
$options(массив)
Options.
По умолчанию: array()

Код Theme_Controller::get_stylesheet_from_context() WC 11.2.1

public function get_stylesheet_from_context( $context, $options = array() ): string {
	return function_exists( 'gutenberg_style_engine_get_stylesheet_from_context' ) ? gutenberg_style_engine_get_stylesheet_from_context( $context, $options ) : wp_style_engine_get_stylesheet_from_context( $context, $options );
}