Tweak conditonal

This commit is contained in:
Mike Jolley 2016-06-02 14:56:13 +01:00
parent 39663a2491
commit dc981d9853
1 changed files with 4 additions and 4 deletions

View File

@ -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' );
}
}