wordpress/wp-content/themes/basic/themify/class-themify-menu-toggle-dropdown.php
/**
	 * Save the toggle dropdown meta for a menu item. Also removes the meta entirely if the field is cleared.
	 */
Save the toggle dropdown meta for a menu item. Also removes the meta entirely if the field is cleared.
Save the toggle dropdown meta for a menu item . Also removes the meta entirely if the field is cleared .
function wp_update_nav_menu_item( $menu_id, $menu_item_db_id, $args ) {
		$param_key = 'menu-item-tf-toggle-dropdown';
		$meta_key = '_themify_toggle_dropdown';
        $new_meta_value = isset( $_POST[$param_key] , $_POST[$param_key][$menu_item_db_id] ) ? $_POST[$param_key][$menu_item_db_id] : false;
		if ( $new_meta_value ) {
			update_post_meta( $menu_item_db_id, $meta_key, $new_meta_value );
		} else {
			delete_post_meta( $menu_item_db_id, $meta_key );
		}
	}
function wp_update_nav_menu_item ( $ menu_id , $ menu_item_db_id , $ args ) { $ param_key = 'menu-item-tf-toggle-dropdown' ; $ meta_key = '_themify_toggle_dropdown' ; $ new_meta_value = isset ( $ _POST [ $ param_key ] , $ _POST [ $ param_key ] [ $ menu_item_db_id ] ) ? $ _POST [ $ param_key ] [ $ menu_item_db_id ] : false ; if ( $ new_meta_value ) { update_post_meta ( $ menu_item_db_id , $ meta_key , $ new_meta_value ) ; } else { delete_post_meta ( $ menu_item_db_id , $ meta_key ) ; } }
Save the toggle dropdown meta for a menu item.
Save the toggle dropdown meta for a menu item .