Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: customize_register

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
3532            * will be reversed for two actions added at priority 10, resulting in
3533            * the core settings no longer being available as expected to themes/plugins.
3534            * So the following manually calls the method that registers the core
3535            * settings up front before doing the action.
3536            */
3537           remove_action( 'customize_register', array( $wp_customize, 'register_controls' ) );
3538           $wp_customize->register_controls();
3539
3540           /** This filter is documented in /wp-includes/class-wp-customize-manager.php */
3541           do_action( 'customize_register', $wp_customize );
3542      }
3543      $wp_customize->_publish_changeset_values( $changeset_post->ID );
3544
3545      /*
3546       * Trash the changeset post if revisions are not enabled. Unpublished
3547       * changesets by default get garbage collected due to the auto-draft status.
3548       * When a changeset post is published, however, it would no longer get cleaned
3549       * out. This is a problem when the changeset posts are never displayed anywhere,
3550       * since they would just be endlessly piling up. So here we use the revisions