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 |
---|---|
2799 | * @type string $uuid Changeset UUID. |
2800 | * @type string $title Requested title for the changeset post. |
2801 | * @type string $status Requested status for the changeset post. |
2802 | * @type string $date_gmt Requested date for the changeset post in MySQL format and GMT timezone. |
2803 | * @type int|false $post_id Post ID for the changeset, or false if it doesn't exist yet. |
2804 | * @type array $previous_data Previous data contained in the changeset. |
2805 | * @type WP_Customize_Manager $manager Manager instance. |
2806 | * } |
2807 | */ |
2808 | $data = apply_filters( 'customize_changeset_save_data', $data, $filter_context ); |
2809 |
|
2810 | // Switch theme if publishing changes now. |
2811 | if ( 'publish' === $args['status'] && ! $this->is_theme_active() ) { |
2812 | // Temporarily stop previewing the theme to allow switch_themes() to operate properly. |
2813 | $this->stop_previewing_theme(); |
2814 | switch_theme( $this->get_stylesheet() ); |
2815 | update_option( 'theme_switched_via_customizer', true ); |
2816 | $this->start_previewing_theme(); |
2817 | } |