Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: customize_sanitize_{$this->id}

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
728                }
729           }
730           if ( 'publish' !== $menu_item_value['status'] ) {
731                $menu_item_value['status'] = 'draft';
732           }
733
734           $menu_item_value['_invalid'] = (bool) $menu_item_value['_invalid'];
735
736           /** This filter is documented in wp-includes/class-wp-customize-setting.php */
737           return apply_filters( "customize_sanitize_{$this->id}", $menu_item_value, $this );
738      }
739
740      /**
741       * Creates/updates the nav_menu_item post for this setting.
742       *
743       * Any created menu items will have their assigned post IDs exported to the client
744       * via the {@see 'customize_save_response'} filter. Likewise, any errors will be
745       * exported to the client via the customize_save_response() filter.
746       *