WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code | 
|---|---|
| 3429 |            * will be reversed for two actions added at priority 10, resulting in | 
| 3430 |            * the core settings no longer being available as expected to themes/plugins. | 
| 3431 |            * So the following manually calls the method that registers the core | 
| 3432 |            * settings up front before doing the action. | 
| 3433 |            */ | 
| 3434 |           remove_action( 'customize_register', array( $wp_customize, 'register_controls' ) ); | 
| 3435 |           $wp_customize->register_controls(); | 
| 3436 |  | 
| 3437 |           /** This filter is documented in /wp-includes/class-wp-customize-manager.php */ | 
| 3438 |           do_action( 'customize_register', $wp_customize ); | 
| 3439 |      } | 
| 3440 |      $wp_customize->_publish_changeset_values( $changeset_post->ID ); | 
| 3441 |  | 
| 3442 |      /* | 
| 3443 |       * Trash the changeset post if revisions are not enabled. Unpublished | 
| 3444 |       * changesets by default get garbage collected due to the auto-draft status. | 
| 3445 |       * When a changeset post is published, however, it would no longer get cleaned | 
| 3446 |       * out. This is a problem when the changeset posts are never displayed anywhere, | 
| 3447 |       * since they would just be endlessly piling up. So here we use the revisions |