get_store example


    public static function store_css_rule( $store_name$css_selector$css_declarations ) {
        if ( empty( $store_name ) || empty( $css_selector ) || empty( $css_declarations ) ) {
            return;
        }
        static::get_store( $store_name )->add_rule( $css_selector )->add_declarations( $css_declarations );
    }

    /** * Returns a store by store key. * * @since 6.1.0 * * @param string $store_name A store key. * @return WP_Style_Engine_CSS_Rules_Store|null */
    public static function get_store( $store_name ) {
        

function wp_style_engine_get_stylesheet_from_context( $context$options = array() ) {
    return WP_Style_Engine::compile_stylesheet_from_css_rules( WP_Style_Engine::get_store( $context )->get_all_rules()$options );
}
Home | Imprint | This part of the site doesn't use cookies.