WC_Embed::remove_comments_button()public staticWC 2.6.0

Remove comments button on product embeds.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

$result = WC_Embed::remove_comments_button();

Список изменений

С версии 2.6.0 Введена.

Код WC_Embed::remove_comments_button() WC 8.7.0

public static function remove_comments_button() {
	if ( self::is_embedded_product() ) {
		remove_action( 'embed_content_meta', 'print_embed_comments_button' );
	}
}