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.


Parameters

$allowed_options

(array)The allowed options list.


Top ↑

Source

File: wp-admin/options.php

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
5.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.