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 |
---|---|
714 | } |
715 | } |
716 | if ( 'publish' !== $menu_item_value['status'] ) { |
717 | $menu_item_value['status'] = 'draft'; |
718 | } |
719 |
|
720 | $menu_item_value['_invalid'] = (bool) $menu_item_value['_invalid']; |
721 |
|
722 | /** This filter is documented in wp-includes/class-wp-customize-setting.php */ |
723 | return apply_filters( "customize_sanitize_{$this->id}", $menu_item_value, $this ); |
724 | } |
725 |
|
726 | /** |
727 | * Creates/updates the nav_menu_item post for this setting. |
728 | * |
729 | * Any created menu items will have their assigned post IDs exported to the client |
730 | * via the {@see 'customize_save_response'} filter. Likewise, any errors will be |
731 | * exported to the client via the customize_save_response() filter. |
732 | * |