WC_Admin_Webhooks::screen_option()
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 Admin Webhooks::screen option WC 8.1.1
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', ) ); } }