allowed_options
Filters the allowed options list.
Usage
add_filter( 'allowed_options', 'wp_kama_allowed_options_filter' );
/**
* Function for `allowed_options` filter-hook.
*
* @param array $allowed_options The allowed options list.
*
* @return array
*/
function wp_kama_allowed_options_filter( $allowed_options ){
// filter...
return $allowed_options;
}
- $allowed_options(array)
- The allowed options list.
Changelog
| Since 5.5.0 | Introduced. |
Where the hook is called
In file: /wp-admin/options.php
allowed_options
wp-admin/options.php 237
$allowed_options = apply_filters( 'allowed_options', $allowed_options );
Where the hook is used in WordPress
wp-admin/includes/admin-filters.php 96
add_filter( 'allowed_options', 'option_update_filter' );