Mega Menu Problem
-
Hi there!
I have the problem with max mega menu plugin:
When I trying to save widget content it deleting widget instead, I learned a problem andI see that when I press save widget your plugin hooking to the
widget_update_callbackfilter and removing important info from widget meta:mega_menu_columns,mega_menu_parent_menu_id,mega_menu_order.So I was able to fix this by modifying your function:
function wpm_set_new_value( $old_value, $new_value, $config = array(), $lang = '' ) { if ( is_bool( $old_value ) || is_serialized_string( $old_value ) || json_decode( $old_value ) ) { return $old_value; } $old_value = wpm_value_to_ml_array( $old_value ); $value = wpm_set_language_value( $old_value, $new_value, $config, $lang ); $value = wpm_ml_value_to_string( $value ); if(isset($old_value['mega_menu_columns']) && !isset($value['mega_menu_columns'])) $value['mega_menu_columns'] = $old_value['mega_menu_columns']; if(isset($old_value['mega_menu_parent_menu_id']) && !isset($value['mega_menu_parent_menu_id'])) $value['mega_menu_parent_menu_id'] = $old_value['mega_menu_parent_menu_id']; if(isset($old_value['mega_menu_order']) && !isset($value['mega_menu_order'])) $value['mega_menu_order'] = $old_value['mega_menu_order']; return $value; }This is great plugin, have you donate button somewhere?
Thanks!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Mega Menu Problem’ is closed to new replies.