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 |
---|---|
2886 | * @type string $uuid Changeset UUID. |
2887 | * @type string $title Requested title for the changeset post. |
2888 | * @type string $status Requested status for the changeset post. |
2889 | * @type string $date_gmt Requested date for the changeset post in MySQL format and GMT timezone. |
2890 | * @type int|false $post_id Post ID for the changeset, or false if it doesn't exist yet. |
2891 | * @type array $previous_data Previous data contained in the changeset. |
2892 | * @type WP_Customize_Manager $manager Manager instance. |
2893 | * } |
2894 | */ |
2895 | $data = apply_filters( 'customize_changeset_save_data', $data, $filter_context ); |
2896 |
|
2897 | // Switch theme if publishing changes now. |
2898 | if ( 'publish' === $args['status'] && ! $this->is_theme_active() ) { |
2899 | // Temporarily stop previewing the theme to allow switch_themes() to operate properly. |
2900 | $this->stop_previewing_theme(); |
2901 | switch_theme( $this->get_stylesheet() ); |
2902 | update_option( 'theme_switched_via_customizer', true ); |
2903 | $this->start_previewing_theme(); |
2904 | } |