WC_Admin_Meta_Boxes::rename_meta_boxes()
Rename core meta boxes.
Contents
Description Description
Source Source
File: includes/admin/class-wc-admin-meta-boxes.php
public function rename_meta_boxes() { global $post; // Comments/Reviews. if ( isset( $post ) && ( 'publish' === $post->post_status || 'private' === $post->post_status ) && post_type_supports( 'product', 'comments' ) ) { remove_meta_box( 'commentsdiv', 'product', 'normal' ); add_meta_box( 'commentsdiv', __( 'Reviews', 'woocommerce' ), 'post_comment_meta_box', 'product', 'normal' ); } }