WC_Embed::remove_comments_button()public staticWC 2.6.0

Remove comments button on product embeds.

Method of the class: WC_Embed{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WC_Embed::remove_comments_button();

Changelog

Since 2.6.0 Introduced.

WC_Embed::remove_comments_button() code WC 8.9.0

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