WC_Admin_Webhooks::screen_option()
Add screen option.
Method of the class: WC_Admin_Webhooks{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_Admin_Webhooks = new WC_Admin_Webhooks(); $WC_Admin_Webhooks->screen_option();
WC_Admin_Webhooks::screen_option() WC Admin Webhooks::screen option code WC 9.7.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', ) ); } }