{"id":4563569,"date":"2014-01-31T17:21:22","date_gmt":"2014-01-31T17:21:22","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/bbpress-menus-disappearing\/"},"modified":"2016-08-21T15:21:47","modified_gmt":"2016-08-21T15:21:47","slug":"bbpress-menus-disappearing","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/bbpress-menus-disappearing\/","title":{"rendered":"BBPress menus disappearing"},"content":{"rendered":"<p>Hi there.<\/p>\n<p>I&#8217;ve got a very weird thing with your plugin and I think is due to the modify_roles function. This function adds\/removes capabilities in every refresh and this should be only done in activation\/deactivation.<\/p>\n<p>The thing is that I have another plugin that uses the same hook than modify_roles (plugins_loaded) and when both are activated, once than my plugin make a current_user_can( &#8216;activate_plugins&#8217; ) on that hook, the BBPress capabilities disappear and the BBPress menus are gone too.<\/p>\n<p>My plugin is a premium one but I can send it to you if you wish.<\/p>\n<p>https:\/\/wordpress.org\/plugins\/all-in-one-event-calendar\/<\/p>\n","protected":false},"template":"","class_list":["post-4563569","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4563569","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4563569\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=4563569"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}