_wp_migrate_menu_to_navigation_post


_wp_migrate_menu_to_navigation_post ( $new_name, $new_theme, $old_theme )

Access:
  • private
Parameters:
  • (string) new_name Name of the new theme.
  • (WP_Theme) new_theme New theme.
  • (WP_Theme) old_theme Old theme.
Defined at:

Description

Migrates classic menus to a block-based navigation post on theme switch.Assigns the created navigation post to the corresponding navigation area.

Related Functions

_wp_register_default_navigation_areas, _disable_content_editor_for_navigation_post_type, _wp_upgrade_revisions_of_post, the_comments_navigation, get_the_comments_navigation

Top Google Results

User discussions

wpseek mobile