A couple of suggestions from a fellow plugin developer
-
Congrats on your first plugin ??
I just had a couple of suggestions.
Instead of removing the Page Builder node in
wp_before_admin_bar_render
, just useremove_action('admin_bar_menu', 'FLBuilder::admin_bar_menu', 999)
This would allow it to “play nice” with other plugins that may rely on that node existing and allow them to react accordingly.
Also, I noticed that in
apspider_admin_bar_removal
function you are not checking your plugin settings to see if those menus are hidden. For example, if I hide the “Edit in Beaver Builder” menu, it shouldn’t remove the “Page Builder” node. Currently, the only way to get that menu back is to disable your plugin.Thanks.
- The topic ‘A couple of suggestions from a fellow plugin developer’ is closed to new replies.