WC_Admin_Importers::add_to_menus()publicWC 1.0

Add menu items for our custom importers.

Method of the class: WC_Admin_Importers{}

No Hooks.

Return

null. Nothing (null).

Usage

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

WC_Admin_Importers::add_to_menus() code WC 8.6.1

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'] );
	}
}