WC_Admin_Menus::set_screen_option()
Validate screen options on update.
Метод класса: WC_Admin_Menus{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$WC_Admin_Menus = new WC_Admin_Menus(); $WC_Admin_Menus->set_screen_option( $status, $option, $value );
- $status(true|false|int) (обязательный)
- Screen option value.
По умолчанию: false to skip - $option(строка) (обязательный)
- The option name.
- $value(int) (обязательный)
- The number of rows to use.
Код WC_Admin_Menus::set_screen_option() WC Admin Menus::set screen option WC 8.7.0
public function set_screen_option( $status, $option, $value ) { $screen_options = array( 'woocommerce_keys_per_page', 'woocommerce_webhooks_per_page', FileListTable::PER_PAGE_USER_OPTION_KEY, SearchListTable::PER_PAGE_USER_OPTION_KEY, WC_Admin_Log_Table_List::PER_PAGE_USER_OPTION_KEY, ); if ( in_array( $option, $screen_options, true ) ) { return $value; } return $status; }