WC_Admin_Importers::add_to_menus()publicWC 1.0

Add menu items for our custom importers.

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

No Hooks.

Return

null. Nothing.

Usage

$WC_Admin_Importers = new WC_Admin_Importers();
$WC_Admin_Importers->add_to_menus();

Code of WC_Admin_Importers::add_to_menus() WC 6.7.0

public function add_to_menus() {
	foreach ( $this->importers as $id => $importer ) {
		add_submenu_page( $importer['menu'], $importer['name'], $importer['name'], $importer['capability'], $id, $importer['callback'] );
	}
}