WordPress at Your Fingertips
function is not described

WC_Embed::remove_comments_button() public WC 2.6.0

Remove comments button on product embeds.

{} It's a method of the class: WC_Embed{}

No Hooks.

Return

null. Nothing.

Usage

$result = WC_Embed::remove_comments_button();

Changelog

Since 2.6.0 Introduced.

Code of WC_Embed::remove_comments_button() WC 5.6.0

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