Tweak conditonal
This commit is contained in:
parent
39663a2491
commit
dc981d9853
|
@ -47,7 +47,7 @@ class WC_Embed {
|
|||
* @since 2.5.6
|
||||
*/
|
||||
public static function remove_comments_button() {
|
||||
if (is_product()) {
|
||||
if ( self::is_embedded_product() ) {
|
||||
remove_action( 'embed_content_meta', 'print_embed_comments_button' );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue