populate_options WordPress Action Hook

The populate_options hook is used to filter the default values for all options used in the WordPress Settings API. This hook is called whenever the default value for an option is being retrieved, and allows you to override the default value.

do_action( 'populate_options' ) #

Fires before creating WordPress options and populating their default values.


Source

File: wp-admin/includes/schema.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.6.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.