WC_Admin_Pointers::setup_pointers_for_screen()publicWC 1.0

Setup pointers for screen.

Метод класса: WC_Admin_Pointers{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WC_Admin_Pointers = new WC_Admin_Pointers();
$WC_Admin_Pointers->setup_pointers_for_screen();

Код WC_Admin_Pointers::setup_pointers_for_screen() WC 8.7.0

public function setup_pointers_for_screen() {
	$screen = get_current_screen();

	if ( ! $screen ) {
		return;
	}

	switch ( $screen->id ) {
		case 'product':
			$this->create_product_tutorial();
			$this->create_variable_product_tutorial();
			break;
		case 'woocommerce_page_wc-addons':
			$this->create_wc_addons_tutorial();
			break;
	}
}