option_update_filter()
Refreshes the value of the allowed options list available via the allowed_options
See the allowed_options filter.
Хуков нет.
Возвращает
Массив. Updated allowed options.
Использование
option_update_filter( $options );
- $options(массив) (обязательный)
- .
Заметки
- Global. Массив.
$new_allowed_options
Список изменений
| С версии 2.7.0 | Введена. |
| С версии 5.5.0 | $new_whitelist_options was renamed to $new_allowed_options. Please consider writing more inclusive code. |
Код option_update_filter() option update filter WP 7.0.1
function option_update_filter( $options ) {
global $new_allowed_options;
if ( is_array( $new_allowed_options ) ) {
$options = add_allowed_options( $new_allowed_options, $options );
}
return $options;
}