WC_Admin_Webhooks::screen_option()publicWC 1.0

Add screen option.

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

Хуков нет.

Возвращает

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

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

$WC_Admin_Webhooks = new WC_Admin_Webhooks();
$WC_Admin_Webhooks->screen_option();

Код WC_Admin_Webhooks::screen_option() WC 8.7.0

public function screen_option() {
	global $webhooks_table_list;

	// phpcs:ignore WordPress.Security.NonceVerification.Recommended
	if ( ! isset( $_GET['edit-webhook'] ) && $this->is_webhook_settings_page() ) {
		$webhooks_table_list = new WC_Admin_Webhooks_Table_List();

		// Add screen option.
		add_screen_option(
			'per_page',
			array(
				'default' => 10,
				'option'  => 'woocommerce_webhooks_per_page',
			)
		);
	}
}