get_meta_boxes( 'product' ); $label = $wpseo_metabox_values[ str_replace( '_yoast_wpseo_', '', $field ) ]['title']; return $label; } } return $field; } public function set_updated_post_id( $post_id ) { $this->updated_post_id = $post_id; } public function wpseo_premium_post_redirect_slug_change( $slug_changed_flag ) { if ( null !== $this->updated_post_id && get_post_type( $this->updated_post_id ) === 'product_variation' ) { return true; } return $slug_changed_flag; } public function noindex_all_comments_page( $robotsArray ) { if ( isset( $robotsArray['index'] ) ) { unset( $robotsArray['index'] ); } $robotsArray['noindex'] = 'noindex'; return $robotsArray; } }