wphooks.info - whitelist_options

whitelist_options

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-admin/options.php:
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
	}
}

/**
 * Filters the options white list.
 *
 * @since 2.7.0
 *
 * @param array $whitelist_options White list options.
 */
$whitelist_options = apply_filters( 'whitelist_options', $whitelist_options );

/*
 * If $_GET['action'] == 'update' we are saving settings sent from a settings page
 */
if ( 'update' == $action ) {
	if ( 'options' == $option_page && ! isset( $_POST['option_page'] ) ) { // This is for back compat and will eventually be removed.
		$unregistered = true;
		check_admin_referer( 'update-options' );
	} else {