Posts are deleted everyday at night

‘Every night’ sounds like it’s triggered via a cronjob. You may install the wp-crontrol plugin to see what cronjobs are sheduled in your wordpress install. If you don’t see something obvious there I would also suppose it happens outside of wp. But as you already pointed out, you can only be sure when you revert … Read more

How to delete orphan userdata from array in wp-options

If what posted is all the code you are using, you unsetting the value from the retreved array using unset, but then you don’t save again the array on database: add_action( ‘delete_user’, ‘forum_remove_deleted_user’ ); function forum_remove_deleted_user($user_id) { $user_obj = get_userdata($user_id); $subscbr_email = $user_obj->user_email; if( ! empty( $subscbr_email ) ) { $list = (array) get_option(‘mf_forum_subscribers_1’); if( … Read more

wp_nav_menu in 3.7 add name class nav navbar-nav

Edit In this case, it appears that the problem is that you’re not actually outputting a custom nav menu at all, but rather the menu fallback: wp_page_menu(). Notice that the classes for the list items are page-item rather than menu-item. That’s a sure giveaway that the output is being generated by wp_page_menu() rather than wp_nav_menu(). … Read more