WP_Customize_Manager::save_changeset_post( array $args = array() ): array|WP_Error
- Since
- 4.7.0
- Source
wp-includes/class-wp-customize-manager.php:2640
Compatibility
- WordPress
- since 4.7.0
- PHP
- 7.4–8.6-dev
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0), and compiles on PHP 7.4 through 8.6-dev.
Parameters
$argsarrayoptional- Args for changeset post.Default:
array()$dataarrayOptional additional changeset data. Values will be merged on top of any existing post values.$statusstringPost status. Optional. If supplied, the save will be transactional and a post revision will be allowed.$titlestringPost title. Optional.$date_gmtstringDate in GMT. Optional.$user_idintID for user who is saving the changeset. Optional, defaults to the current user ID.$starter_contentboolWhether the data is starter content. If false (default), then $starter_content will be cleared for any $data being saved.$autosaveboolWhether this is a request to create an autosave revision.
Return value
array|WP_Error- Returns array on success and WP_Error with array data on error.
Performance profile
How much work a call to WP_Customize_Manager::save_changeset_post() does, and what it touches: the algorithmic scaling, the Zend instruction count per call across PHP versions, the hooks it hands control to, and the core code that calls it. Measured from the compiled opcodes, not a stopwatch, so every number is identical on any machine running the same PHP version, and every function in core is ranked by cost.
- Cost class
- Heavy
- Scaling
- Constant
- Instructions
- 200–254
- Plugin surface
- 2 hooks
- Called by
- 2
Reaches the database via get_post().
No loop in the body: the same number of instructions runs whatever you pass in.
Executed per call on PHP 8.5, depending on the branch taken. The body compiles to 632.
Third-party callbacks on 'customize_save_validation_before', 'customize_changeset_save_data' run inside this call, and their cost is not bounded by anything here.
2 places in core call this, so the cost is paid more often than your own code shows.
What it touches
- querycontent query
get_post()called directly - hookthird-party callbacks
do_action()called directly - optionoption read or write
update_option()called directly - serializeserialisation
maybe_serialize()one call below WP_Customize_Manager::save_changeset_post() - cacheobject cache
wp_cache_get()one call below WP_Customize_Manager::save_changeset_post()
Further down the call graph this can also reach transient. That is the worst case, several calls deep and usually down an error path, not what a normal call pays.
What one call costs · 116 distinct outcomes
One number would be a lie: the work depends on which branch runs. These are every distinct cost WP_Customize_Manager::save_changeset_post() can have, taken from its control-flow graph on PHP 8.5.
| When | Instructions | Calls it makes |
|---|---|---|
empty($is_future_dated) && !is_wp_error() | 200–207 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), wp_slash(), wp_insert_post(), is_wp_error(), is_wp_error() |
empty($is_future_dated) && !is_wp_error() && empty($args) | 202–207 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), wp_slash(), wp_update_post(), is_wp_error() |
empty($is_future_dated) && !is_wp_error() | 205–213 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), wp_slash(), wp_insert_post(), is_wp_error(), is_wp_error() |
empty($is_future_dated) && !is_wp_error() | 205–210 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_post_status(), wp_slash(), wp_insert_post(), is_wp_error(), is_wp_error() |
empty($is_future_dated) && !is_wp_error() && empty($args) | 207–213 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), wp_slash(), wp_update_post(), is_wp_error() |
empty($is_future_dated) && !is_wp_error() && empty($args) | 207–212 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_post_status(), wp_slash(), wp_update_post(), is_wp_error() |
empty($is_future_dated) | 209–216 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), wp_slash(), wp_insert_post(), is_wp_error(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) && !is_wp_error() && !empty($args) | 210–215 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), wp_slash(), wp_update_post(), wp_get_post_autosave(), is_wp_error() |
empty($is_future_dated) && !is_wp_error() | 210–215 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_date_from_gmt(), wp_slash(), wp_insert_post(), is_wp_error(), is_wp_error() |
empty($is_future_dated) && !is_wp_error() | 210–218 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_post_status(), wp_slash(), wp_insert_post(), is_wp_error(), is_wp_error() |
empty($is_future_dated) && empty($args) | 211–216 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), wp_slash(), wp_update_post(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) && !is_wp_error() && empty($args) | 212–215 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_date_from_gmt(), wp_slash(), wp_update_post(), is_wp_error() |
104 further outcomes, up to 254 instructions
empty($is_future_dated) && !is_wp_error() && empty($args) | 212–218 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_post_status(), wp_slash(), wp_update_post(), is_wp_error() |
empty($is_future_dated) && !is_wp_error() && empty($args) | 212–215 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_post_status(), get_post_status(), wp_slash(), wp_update_post(), is_wp_error() |
empty($is_future_dated) && !is_wp_error() | 212–217 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_post_status(), current_time(), wp_slash(), wp_insert_post(), is_wp_error(), is_wp_error() |
empty($is_future_dated) && !is_wp_error() && empty($args) | 214–217 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_post_status(), current_time(), wp_slash(), wp_update_post(), is_wp_error() |
empty($is_future_dated) | 214–222 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), wp_slash(), wp_insert_post(), is_wp_error(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) | 214–219 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_post_status(), wp_slash(), wp_insert_post(), is_wp_error(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) && !is_wp_error() && !empty($args) | 215–221 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), wp_slash(), wp_update_post(), wp_get_post_autosave(), is_wp_error() |
empty($is_future_dated) && !is_wp_error() && !empty($args) | 215–220 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_post_status(), wp_slash(), wp_update_post(), wp_get_post_autosave(), is_wp_error() |
empty($is_future_dated) && !is_wp_error() | 215–220 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_date_from_gmt(), wp_slash(), wp_insert_post(), is_wp_error(), is_wp_error() |
empty($is_future_dated) && empty($args) | 216–222 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), wp_slash(), wp_update_post(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) && empty($args) | 216–221 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_post_status(), wp_slash(), wp_update_post(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) && !is_wp_error() && empty($args) | 217–220 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_date_from_gmt(), wp_slash(), wp_update_post(), is_wp_error() |
empty($is_future_dated) && !is_wp_error() && !empty($args) | 217–222 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), wp_slash(), wp_update_post(), wp_get_post_autosave(), wp_delete_post(), is_wp_error() |
empty($is_future_dated) && !is_wp_error() && empty($args) | 217–220 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_date_from_gmt(), get_post_status(), wp_slash(), wp_update_post(), is_wp_error() |
empty($is_future_dated) && !is_wp_error() && empty($args) | 217–223 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_post_status(), get_post_status(), wp_slash(), wp_update_post(), is_wp_error() |
empty($is_future_dated) && !is_wp_error() | 217–225 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_post_status(), current_time(), wp_slash(), wp_insert_post(), is_wp_error(), is_wp_error() |
empty($is_future_dated) && !is_wp_error() && empty($args) | 219–225 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_post_status(), current_time(), wp_slash(), wp_update_post(), is_wp_error() |
empty($is_future_dated) && !empty($args) | 219–224 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), wp_slash(), wp_update_post(), wp_get_post_autosave(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) && !is_wp_error() && empty($args) | 219–222 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_post_status(), current_time(), get_post_status(), wp_slash(), wp_update_post(), is_wp_error() |
empty($is_future_dated) | 219–224 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_date_from_gmt(), wp_slash(), wp_insert_post(), is_wp_error(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) | 219–227 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_post_status(), wp_slash(), wp_insert_post(), is_wp_error(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) && !is_wp_error() && !empty($args) | 220–223 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_date_from_gmt(), wp_slash(), wp_update_post(), wp_get_post_autosave(), is_wp_error() |
empty($is_future_dated) && !is_wp_error() && !empty($args) | 220–226 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_post_status(), wp_slash(), wp_update_post(), wp_get_post_autosave(), is_wp_error() |
empty($is_future_dated) && !is_wp_error() && !empty($args) | 220–223 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_post_status(), get_post_status(), wp_slash(), wp_update_post(), wp_get_post_autosave(), is_wp_error() |
empty($is_future_dated) && empty($args) | 221–224 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_date_from_gmt(), wp_slash(), wp_update_post(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) && empty($args) | 221–227 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_post_status(), wp_slash(), wp_update_post(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) && empty($args) | 221–224 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_post_status(), get_post_status(), wp_slash(), wp_update_post(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) | 221–226 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_post_status(), current_time(), wp_slash(), wp_insert_post(), is_wp_error(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) && !is_wp_error() && !empty($args) | 222–228 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), wp_slash(), wp_update_post(), wp_get_post_autosave(), wp_delete_post(), is_wp_error() |
empty($is_future_dated) && !is_wp_error() && empty($args) | 222–225 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_date_from_gmt(), get_post_status(), wp_slash(), wp_update_post(), is_wp_error() |
empty($is_future_dated) && !is_wp_error() && !empty($args) | 222–227 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_post_status(), wp_slash(), wp_update_post(), wp_get_post_autosave(), wp_delete_post(), is_wp_error() |
empty($is_future_dated) && !is_wp_error() && !empty($args) | 222–225 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_post_status(), current_time(), wp_slash(), wp_update_post(), wp_get_post_autosave(), is_wp_error() |
empty($is_future_dated) && empty($args) | 223–226 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_post_status(), current_time(), wp_slash(), wp_update_post(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) && !empty($args) | 224–230 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), wp_slash(), wp_update_post(), wp_get_post_autosave(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) && !is_wp_error() && empty($args) | 224–230 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_post_status(), current_time(), get_post_status(), wp_slash(), wp_update_post(), is_wp_error() |
empty($is_future_dated) && !empty($args) | 224–229 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_post_status(), wp_slash(), wp_update_post(), wp_get_post_autosave(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) | 224–229 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_date_from_gmt(), wp_slash(), wp_insert_post(), is_wp_error(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) && !is_wp_error() | 225–230 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_post_status(), wp_slash(), wp_create_post_autosave(), is_wp_error() |
empty($is_future_dated) && !is_wp_error() && !empty($args) | 225–228 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_date_from_gmt(), wp_slash(), wp_update_post(), wp_get_post_autosave(), is_wp_error() |
empty($is_future_dated) && !is_wp_error() && !empty($args) | 225–228 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_date_from_gmt(), get_post_status(), wp_slash(), wp_update_post(), wp_get_post_autosave(), is_wp_error() |
empty($is_future_dated) && !is_wp_error() && !empty($args) | 225–231 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_post_status(), get_post_status(), wp_slash(), wp_update_post(), wp_get_post_autosave(), is_wp_error() |
empty($is_future_dated) && empty($args) | 226–229 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_date_from_gmt(), wp_slash(), wp_update_post(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) && !empty($args) | 226–231 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), wp_slash(), wp_update_post(), wp_get_post_autosave(), wp_delete_post(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) && empty($args) | 226–229 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_date_from_gmt(), get_post_status(), wp_slash(), wp_update_post(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) && empty($args) | 226–232 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_post_status(), get_post_status(), wp_slash(), wp_update_post(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) | 226–234 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_post_status(), current_time(), wp_slash(), wp_insert_post(), is_wp_error(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) && !is_wp_error() && !empty($args) | 227–230 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_date_from_gmt(), wp_slash(), wp_update_post(), wp_get_post_autosave(), wp_delete_post(), is_wp_error() |
empty($is_future_dated) && !is_wp_error() && !empty($args) | 227–233 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_post_status(), wp_slash(), wp_update_post(), wp_get_post_autosave(), wp_delete_post(), is_wp_error() |
empty($is_future_dated) && !is_wp_error() && !empty($args) | 227–233 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_post_status(), current_time(), wp_slash(), wp_update_post(), wp_get_post_autosave(), is_wp_error() |
empty($is_future_dated) && !is_wp_error() && !empty($args) | 227–230 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_post_status(), get_post_status(), wp_slash(), wp_update_post(), wp_get_post_autosave(), wp_delete_post(), is_wp_error() |
empty($is_future_dated) && !is_wp_error() && !empty($args) | 227–230 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_post_status(), current_time(), get_post_status(), wp_slash(), wp_update_post(), wp_get_post_autosave(), is_wp_error() |
empty($is_future_dated) && empty($args) | 228–234 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_post_status(), current_time(), wp_slash(), wp_update_post(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) && empty($args) | 228–231 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_post_status(), current_time(), get_post_status(), wp_slash(), wp_update_post(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) && !is_wp_error() && !empty($args) | 229–232 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_post_status(), current_time(), wp_slash(), wp_update_post(), wp_get_post_autosave(), wp_delete_post(), is_wp_error() |
empty($is_future_dated) && !empty($args) | 229–232 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_date_from_gmt(), wp_slash(), wp_update_post(), wp_get_post_autosave(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) && !empty($args) | 229–235 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_post_status(), wp_slash(), wp_update_post(), wp_get_post_autosave(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) && !empty($args) | 229–232 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_post_status(), get_post_status(), wp_slash(), wp_update_post(), wp_get_post_autosave(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) && !is_wp_error() | 230–236 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_post_status(), wp_slash(), wp_create_post_autosave(), is_wp_error() |
empty($is_future_dated) && !is_wp_error() | 230–233 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_post_status(), get_post_status(), wp_slash(), wp_create_post_autosave(), is_wp_error() |
empty($is_future_dated) && !is_wp_error() && !empty($args) | 230–233 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_date_from_gmt(), get_post_status(), wp_slash(), wp_update_post(), wp_get_post_autosave(), is_wp_error() |
empty($is_future_dated) && !empty($args) | 231–237 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), wp_slash(), wp_update_post(), wp_get_post_autosave(), wp_delete_post(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) && empty($args) | 231–234 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_date_from_gmt(), get_post_status(), wp_slash(), wp_update_post(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) && !empty($args) | 231–236 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_post_status(), wp_slash(), wp_update_post(), wp_get_post_autosave(), wp_delete_post(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) && !empty($args) | 231–234 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_post_status(), current_time(), wp_slash(), wp_update_post(), wp_get_post_autosave(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) && !is_wp_error() && !empty($args) | 232–235 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_date_from_gmt(), wp_slash(), wp_update_post(), wp_get_post_autosave(), wp_delete_post(), is_wp_error() |
empty($is_future_dated) && !is_wp_error() && !empty($args) | 232–235 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_date_from_gmt(), get_post_status(), wp_slash(), wp_update_post(), wp_get_post_autosave(), wp_delete_post(), is_wp_error() |
empty($is_future_dated) && !is_wp_error() && !empty($args) | 232–238 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_post_status(), get_post_status(), wp_slash(), wp_update_post(), wp_get_post_autosave(), wp_delete_post(), is_wp_error() |
empty($is_future_dated) && !is_wp_error() && !empty($args) | 232–238 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_post_status(), current_time(), get_post_status(), wp_slash(), wp_update_post(), wp_get_post_autosave(), is_wp_error() |
empty($is_future_dated) && empty($args) | 233–239 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_post_status(), current_time(), get_post_status(), wp_slash(), wp_update_post(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) | 234–239 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_post_status(), wp_slash(), wp_create_post_autosave(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) && !is_wp_error() && !empty($args) | 234–240 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_post_status(), current_time(), wp_slash(), wp_update_post(), wp_get_post_autosave(), wp_delete_post(), is_wp_error() |
empty($is_future_dated) && !empty($args) | 234–237 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_date_from_gmt(), wp_slash(), wp_update_post(), wp_get_post_autosave(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) && !is_wp_error() && !empty($args) | 234–237 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_post_status(), current_time(), get_post_status(), wp_slash(), wp_update_post(), wp_get_post_autosave(), wp_delete_post(), is_wp_error() |
empty($is_future_dated) && !empty($args) | 234–237 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_date_from_gmt(), get_post_status(), wp_slash(), wp_update_post(), wp_get_post_autosave(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) && !empty($args) | 234–240 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_post_status(), get_post_status(), wp_slash(), wp_update_post(), wp_get_post_autosave(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) && !is_wp_error() | 235–238 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_date_from_gmt(), get_post_status(), wp_slash(), wp_create_post_autosave(), is_wp_error() |
empty($is_future_dated) && !is_wp_error() | 235–241 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_post_status(), get_post_status(), wp_slash(), wp_create_post_autosave(), is_wp_error() |
empty($is_future_dated) && !empty($args) | 236–239 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_date_from_gmt(), wp_slash(), wp_update_post(), wp_get_post_autosave(), wp_delete_post(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) && !empty($args) | 236–242 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_post_status(), wp_slash(), wp_update_post(), wp_get_post_autosave(), wp_delete_post(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) && !empty($args) | 236–242 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_post_status(), current_time(), wp_slash(), wp_update_post(), wp_get_post_autosave(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) && !empty($args) | 236–239 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_post_status(), get_post_status(), wp_slash(), wp_update_post(), wp_get_post_autosave(), wp_delete_post(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) && !empty($args) | 236–239 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_post_status(), current_time(), get_post_status(), wp_slash(), wp_update_post(), wp_get_post_autosave(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) && !is_wp_error() | 237–240 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_post_status(), current_time(), get_post_status(), wp_slash(), wp_create_post_autosave(), is_wp_error() |
empty($is_future_dated) && !is_wp_error() && !empty($args) | 237–240 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_date_from_gmt(), get_post_status(), wp_slash(), wp_update_post(), wp_get_post_autosave(), wp_delete_post(), is_wp_error() |
empty($is_future_dated) && !empty($args) | 238–241 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_post_status(), current_time(), wp_slash(), wp_update_post(), wp_get_post_autosave(), wp_delete_post(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) | 239–245 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_post_status(), wp_slash(), wp_create_post_autosave(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) | 239–242 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_post_status(), get_post_status(), wp_slash(), wp_create_post_autosave(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) && !is_wp_error() && !empty($args) | 239–242 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_post_status(), current_time(), get_post_status(), wp_slash(), wp_update_post(), wp_get_post_autosave(), wp_delete_post(), is_wp_error() |
empty($is_future_dated) && !empty($args) | 239–242 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_date_from_gmt(), get_post_status(), wp_slash(), wp_update_post(), wp_get_post_autosave(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) && !is_wp_error() | 240–243 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_date_from_gmt(), get_post_status(), wp_slash(), wp_create_post_autosave(), is_wp_error() |
empty($is_future_dated) && !empty($args) | 241–244 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_date_from_gmt(), wp_slash(), wp_update_post(), wp_get_post_autosave(), wp_delete_post(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) && !empty($args) | 241–244 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_date_from_gmt(), get_post_status(), wp_slash(), wp_update_post(), wp_get_post_autosave(), wp_delete_post(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) && !empty($args) | 241–247 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_post_status(), get_post_status(), wp_slash(), wp_update_post(), wp_get_post_autosave(), wp_delete_post(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) && !empty($args) | 241–247 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_post_status(), current_time(), get_post_status(), wp_slash(), wp_update_post(), wp_get_post_autosave(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) && !is_wp_error() | 242–245 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_post_status(), current_time(), get_post_status(), wp_slash(), wp_create_post_autosave(), is_wp_error() |
empty($is_future_dated) && !empty($args) | 243–249 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_post_status(), current_time(), wp_slash(), wp_update_post(), wp_get_post_autosave(), wp_delete_post(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) && !empty($args) | 243–246 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_post_status(), current_time(), get_post_status(), wp_slash(), wp_update_post(), wp_get_post_autosave(), wp_delete_post(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) | 244–247 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_date_from_gmt(), get_post_status(), wp_slash(), wp_create_post_autosave(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) | 244–250 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_post_status(), get_post_status(), wp_slash(), wp_create_post_autosave(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) | 246–249 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), get_post_status(), current_time(), get_post_status(), wp_slash(), wp_create_post_autosave(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) && !empty($args) | 246–249 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_date_from_gmt(), get_post_status(), wp_slash(), wp_update_post(), wp_get_post_autosave(), wp_delete_post(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) && !empty($args) | 248–251 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_post_status(), current_time(), get_post_status(), wp_slash(), wp_update_post(), wp_get_post_autosave(), wp_delete_post(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) | 249–252 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_date_from_gmt(), get_post_status(), wp_slash(), wp_create_post_autosave(), is_wp_error(), ->get_error_code(), setting_validities() |
empty($is_future_dated) | 251–254 | get_current_user_id(), status(), ->changeset_post_id(), gmdate(), ->unsanitized_post_values(), array_keys(), ->add_dynamic_settings(), do_action(), array_keys(), array_fill_keys(), array_merge(), ->validate_setting_values(), array_filter(), ->get_changeset_post_data(), is_wp_error(), ->changeset_uuid(), is_wp_error(), apply_filters(), wp_json_encode(), ->changeset_uuid(), get_post_status(), current_time(), get_post_status(), wp_slash(), wp_create_post_autosave(), is_wp_error(), ->get_error_code(), setting_validities() |
This body has more branch combinations than are worth enumerating, so the table covers the outcomes found first rather than every one that exists.
Across PHP versions
| PHP | Compiled | Executed | Branches | Notes |
|---|---|---|---|---|
| 8.6-dev | 632 | 200–254 | 70 | |
| 8.5 | 632 | 200–254 | 70 | |
| 8.4 | 632 | 200–254 | 70 | 2 fewer instructions than PHP 8.3 |
| 8.3 | 634 | 200–254 | 70 | |
| 8.2 | 634 | 200–254 | 70 | |
| 8.1 | 634 | 200–254 | 70 | |
| 7.4 | 634 | 200–254 | 70 |
An instruction is not a fixed amount of time, so a matching count is not necessarily the same speed; what it rules out is a difference in the work itself.
Hooks and filters fired · 2
2 hooks fire while WP_Customize_Manager::save_changeset_post() runs, in this order:
- do_action( customize_save_validation_before )actionline 2780 (+140 into the body)
Fires before save validation happens.
- apply_filters( customize_changeset_save_data )filterline 2905 (+265 into the body)
Filters the settings' data that will be persisted into the changeset.
Uses · 38
- get_current_user_id()Gets the current user's ID.
- get_post_status()Retrieves the post status based on the post ID.
- __()Retrieves the translation of $text.
- wp_generate_uuid4()Generates a random UUID (version 4).
- is_wp_error()Checks whether the given variable is a WordPress Error.
- has_action()Checks if any action has been registered for a hook.
- mysql2date()Converts given MySQL date string into a different format.
- get_post()Retrieves post data given a post ID or post object.
- do_action()Calls the callback functions that have been added to an action hook.
- _n()Translates and retrieves the singular or plural form based on the supplied number.
- number_format_i18n()Converts float number to format based on the locale.
- current_time()Retrieves the current time based on specified type.
Show all 38
- apply_filters()Calls the callback functions that have been added to a filter hook.
- switch_theme()Switches the theme.
- update_option()Updates the value of an option that was already added.
- wp_json_encode()Encodes a variable into JSON, with some confidence checks.
- get_date_from_gmt()Given a date in UTC or GMT timezone, returns that date in the timezone of the site.
- add_filter()Adds a callback function to a filter hook.
- wp_create_post_autosave()Creates autosave data for the specified post from `$_POST` data.
- wp_slash()Adds slashes to a string or recursively adds slashes to strings within an array.
- remove_filter()Removes a callback function from a filter hook.
- wp_update_post()Updates a post with new post data.
- wp_get_post_autosave()Retrieves the autosaved data of the specified post.
- wp_delete_post()Trashes or deletes a post or page.
- wp_insert_post()Inserts or update a post.
- WP_Customize_Manager::changeset_post_id()Gets the changeset post ID for the loaded changeset.
- WP_Error::__construct()Initializes the error.
- WP_Customize_Manager::get_changeset_post_data()Gets the data stored in a changeset post.
- WP_Customize_Manager::is_theme_active()Checks if the current theme is active.
- WP_Customize_Manager::set_post_value()Overrides a setting's value in the current customized state.
- WP_Customize_Manager::unsanitized_post_values()Gets dirty pre-sanitized setting values in the current customized state.
- WP_Customize_Manager::add_dynamic_settings()Registers any dynamically-created settings, such as those from $_POST['customized'] that have no corresponding setting created.
- WP_Customize_Manager::get_setting()Retrieves a customize setting.
- WP_Customize_Manager::get_stylesheet()Retrieves the stylesheet name of the previewed theme.
- WP_Customize_Manager::validate_setting_values()Validates setting values.
- WP_Customize_Manager::changeset_uuid()Gets the changeset UUID.
- WP_Customize_Manager::stop_previewing_theme()Stops previewing the selected theme.
- WP_Customize_Manager::start_previewing_theme()If the theme to be previewed isn't the active theme, add filter callbacks to swap it out at runtime.
Used by · 2
- WP_Customize_Manager::_save_starter_content_changeset()Saves starter content changeset.
- WP_Customize_Manager::save()Handles customize_save WP Ajax request to save/update a changeset.
Source code
public function save_changeset_post( $args = array() ) { $args = array_merge( array( 'status' => null, 'title' => null, 'data' => array(), 'date_gmt' => null, 'user_id' => get_current_user_id(), 'starter_content' => false, 'autosave' => false, ), $args ); $changeset_post_id = $this->changeset_post_id(); $existing_changeset_data = array(); if ( $changeset_post_id ) { $existing_status = get_post_status( $changeset_post_id ); if ( 'publish' === $existing_status || 'trash' === $existing_status ) { return new WP_Error( 'changeset_already_published', __( 'The previous set of changes has already been published. Please try saving your current set of changes again.' ), array( 'next_changeset_uuid' => wp_generate_uuid4(), ) ); } $existing_changeset_data = $this->get_changeset_post_data( $changeset_post_id ); if ( is_wp_error( $existing_changeset_data ) ) { return $existing_changeset_data; } } // Fail if attempting to publish but publish hook is missing. if ( 'publish' === $args['status'] && false === has_action( 'transition_post_status', '_wp_customize_publish_changeset' ) ) { return new WP_Error( 'missing_publish_callback' ); } // Validate date. $now = gmdate( 'Y-m-d H:i:59' ); if ( $args['date_gmt'] ) { $is_future_dated = ( mysql2date( 'U', $args['date_gmt'], false ) > mysql2date( 'U', $now, false ) ); if ( ! $is_future_dated ) { return new WP_Error( 'not_future_date', __( 'You must supply a future date to schedule.' ) ); // Only future dates are allowed. } if ( ! $this->is_theme_active() && ( 'future' === $args['status'] || $is_future_dated ) ) { return new WP_Error( 'cannot_schedule_theme_switches' ); // This should be allowed in the future, when theme is a regular setting. } $will_remain_auto_draft = ( ! $args['status'] && ( ! $changeset_post_id || 'auto-draft' === get_post_status( $changeset_post_id ) ) ); if ( $will_remain_auto_draft ) { return new WP_Error( 'cannot_supply_date_for_auto_draft_changeset' ); } } elseif ( $changeset_post_id && 'future' === $args['status'] ) { // Fail if the new status is future but the existing post's date is not in the future. $changeset_post = get_post( $changeset_post_id ); if ( mysql2date( 'U', $changeset_post->post_date_gmt, false ) <= mysql2date( 'U', $now, false ) ) { return new WP_Error( 'not_future_date', __( 'You must supply a future date to schedule.' ) ); } } if ( ! empty( $is_future_dated ) && 'publish' === $args['status'] ) { $args['status'] = 'future'; } // Validate autosave param. See _wp_post_revision_fields() for why these fields are disallowed. if ( $args['autosave'] ) { if ( $args['date_gmt'] ) { return new WP_Error( 'illegal_autosave_with_date_gmt' ); } elseif ( $args['status'] ) { return new WP_Error( 'illegal_autosave_with_status' ); } elseif ( $args['user_id'] && get_current_user_id() !== $args['user_id'] ) { return new WP_Error( 'illegal_autosave_with_non_current_user' ); } } // The request was made via wp.customize.previewer.save().Changelog
Introduced in 4.7.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 6.9.7 tag, from
src/wp-includes/class-wp-customize-manager.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it. - Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.