WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Features

Settings::replace_settings_page() protected WC 1.0

Replace the Settings page in the original WooCommerce menu.

{} It's a method of the class: Settings{}

No Hooks.

Return

null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->replace_settings_page( $page );
$page(array) (required)
Page used to replace the original.

Code of Settings::replace_settings_page() WC 5.3.0

<?php
protected function replace_settings_page( $page ) {
	global $submenu;

	// Check if WooCommerce parent menu has been registered.
	if ( ! isset( $submenu['woocommerce'] ) ) {
		return;
	}

	foreach ( $submenu['woocommerce'] as &$item ) {
		// The "slug" (aka the path) is the third item in the array.
		if ( 0 === strpos( $item[2], 'wc-settings' ) ) {
			$item[2] = wc_admin_url( "&path={$page['path']}" );
		}
	}
}