wordpress/wp-content/themes/basic/themify/megamenu/class-mega-menu.php
/**
 * Clear the mega menu option when a menu item is removed
 *
 * @since 1.0.0
 */
Clear the mega menu option when a menu item is removed
@since 1.0.0
Clear the mega menu option when a menu item is removed @since 1 . 0 . 0
function themify_remove_mega_menu_meta( $post_id ) {
	if ( is_nav_menu_item( $post_id ) ) {
		delete_post_meta( $post_id, '_themify_mega_menu_item' );
		delete_post_meta( $post_id, '_themify_mega_menu_column' );
		delete_post_meta( $post_id, '_themify_mega_menu_column_sub_item' );
		delete_post_meta( $post_id, '_themify_mega_menu_dual' );
		delete_post_meta( $post_id, '_themify_highlight_link' );
	}
}
function themify_remove_mega_menu_meta ( $ post_id ) { if ( is_nav_menu_item ( $ post_id ) ) { delete_post_meta ( $ post_id , '_themify_mega_menu_item' ) ; delete_post_meta ( $ post_id , '_themify_mega_menu_column' ) ; delete_post_meta ( $ post_id , '_themify_mega_menu_column_sub_item' ) ; delete_post_meta ( $ post_id , '_themify_mega_menu_dual' ) ; delete_post_meta ( $ post_id , '_themify_highlight_link' ) ; } }
Clear the mega menu option when a menu item is removed
 @since 1.0.0
Clear the mega menu option when a menu item is removed @since 1 . 0 . 0