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 |
---|---|
2866 | * @type string $uuid Changeset UUID. |
2867 | * @type string $title Requested title for the changeset post. |
2868 | * @type string $status Requested status for the changeset post. |
2869 | * @type string $date_gmt Requested date for the changeset post in MySQL format and GMT timezone. |
2870 | * @type int|false $post_id Post ID for the changeset, or false if it doesn't exist yet. |
2871 | * @type array $previous_data Previous data contained in the changeset. |
2872 | * @type WP_Customize_Manager $manager Manager instance. |
2873 | * } |
2874 | */ |
2875 | $data = apply_filters( 'customize_changeset_save_data', $data, $filter_context ); |
2876 |
|
2877 | // Switch theme if publishing changes now. |
2878 | if ( 'publish' === $args['status'] && ! $this->is_theme_active() ) { |
2879 | // Temporarily stop previewing the theme to allow switch_themes() to operate properly. |
2880 | $this->stop_previewing_theme(); |
2881 | switch_theme( $this->get_stylesheet() ); |
2882 | update_option( 'theme_switched_via_customizer', true ); |
2883 | $this->start_previewing_theme(); |
2884 | } |