WordPress at Your Fingertips
function is not described

WC_Admin_Menus::settings_page_init() public WC 1.0

Loads gateways and shipping methods into memory for use within settings.

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

Hooks from the method

Return

null. Nothing.

Usage

$WC_Admin_Menus = new WC_Admin_Menus();
$WC_Admin_Menus->settings_page_init();

Code of WC_Admin_Menus::settings_page_init() WC 5.9.0

public function settings_page_init() {
	WC()->payment_gateways();
	WC()->shipping();

	// Include settings pages.
	WC_Admin_Settings::get_settings_pages();

	// Add any posted messages.
	if ( ! empty( $_GET['wc_error'] ) ) { // WPCS: input var okay, CSRF ok.
		WC_Admin_Settings::add_error( wp_kses_post( wp_unslash( $_GET['wc_error'] ) ) ); // WPCS: input var okay, CSRF ok.
	}

	if ( ! empty( $_GET['wc_message'] ) ) { // WPCS: input var okay, CSRF ok.
		WC_Admin_Settings::add_message( wp_kses_post( wp_unslash( $_GET['wc_message'] ) ) ); // WPCS: input var okay, CSRF ok.
	}

	do_action( 'woocommerce_settings_page_init' );
}