allowed_options WordPress Filter Hook
Wordpress provides a hook called "allowed_options" which can be used to restrict certain options from being updated. This can be useful in a number of situations, such as when you want to prevent a certain option from being changed by a plugin or theme.
apply_filters( 'allowed_options', array $allowed_options ) #
Filters the allowed options list.
Contents
Parameters
- $allowed_options
(array)The allowed options list.
Source
File: wp-admin/options.php
Changelog
Version | Description |
---|---|
5.5.0 | Introduced. |