get_meta_boxes( 'product' ); $label = $wpseo_metabox_values[ str_replace( '_yoast_wpseo_', '', $field ) ][ 'title' ]; return $label; } } return $field; } function set_updated_post_id( $post_id ){ $this->updated_post_id = $post_id; } 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; } }