WC_Embed::remove_comments_button()
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() WC Embed::remove comments button code WC 9.8.2
public static function remove_comments_button() { if ( self::is_embedded_product() ) { remove_action( 'embed_content_meta', 'print_embed_comments_button' ); } }