populate_options
Fires before creating WordPress options and populating their default values.
Description
do_action( 'populate_options' );
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'populate_options' );
- The following example is for adding a hook callback.
- // define the populate_options callback
- function action_populate_options( ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'populate_options', 'action_populate_options', 10, 0 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'populate_options', 'action_populate_options', 10, 0 );
Defined (1)
The action is defined in the following location(s).
- /wp-admin/includes/schema.php
- do_action( 'populate_options' );