/**
* Status for calling the update method, used in customize_save_response filter.
*
+ * See {@see 'customize_save_response'}.
+ *
* When status is inserted, the placeholder post ID is stored in $previous_post_id.
* When status is error, the error is stored in $update_error.
*
}
/**
- * Filter the wp_get_nav_menu_items() result to supply the previewed menu items.
+ * Filters the wp_get_nav_menu_items() result to supply the previewed menu items.
*
* @since 4.3.0
* @access public
/** This filter is documented in wp-includes/nav-menu.php */
$post->description = apply_filters( 'nav_menu_description', wp_trim_words( $post->description, 200 ) );
+ /** This filter is documented in wp-includes/nav-menu.php */
+ $post = apply_filters( 'wp_setup_nav_menu_item', $post );
+
return $post;
}
}
/**
- * Create/update the nav_menu_item post for this setting.
+ * Creates/updates the nav_menu_item post for this setting.
*
* Any created menu items will have their assigned post IDs exported to the client
- * via the customize_save_response filter. Likewise, any errors will be exported
- * to the client via the customize_save_response() filter.
+ * via the {@see 'customize_save_response'} filter. Likewise, any errors will be
+ * exported to the client via the customize_save_response() filter.
*
* To delete a menu, the client can send false as the value.
*