WC_Embed::print_embed_styles()
Basic styling.
Метод класса: WC_Embed{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$result = WC_Embed::print_embed_styles();
Код WC_Embed::print_embed_styles() WC Embed::print embed styles WC 8.7.0
<?php public static function print_embed_styles() { if ( ! self::is_embedded_product() ) { return; } ?> <style type="text/css"> a.wc-embed-button { border-radius: 4px; border: 1px solid #ddd; box-shadow: 0px 1px 0 0px rgba(0, 0, 0, 0.05); display:inline-block; padding: .5em; } a.wc-embed-button:hover, a.wc-embed-button:focus { border: 1px solid #ccc; box-shadow: 0px 1px 0 0px rgba(0, 0, 0, 0.1); color: #999; text-decoration: none; } .wp-embed-excerpt p { margin: 0 0 1em; } .wc-embed-price { display: block; opacity: .75; font-weight: 700; margin-top: -.75em; } .wc-embed-rating { display: inline-block; } </style> <?php }