I jumbled a few things together in this PR that I've been wanting to do for a while now:
Improved whitespace in function calls, around functions, etc.
Renamed $RFG to $gutenberg_ramp
Added / Updated / Clarified comments throughout the code
Removing Gutenberg filters now with gutenberg_ramp_remove_dashboard_links function instead of an anonymous function. Anonymous functions shouldn't be used with hooks for extensibility.
Removed unused variable $criteria in gutenberg_ramp_load_gutenberg
Refactored boolean transformation
Moved filters that are relevant only to the Gutenberg_Ramp class to the Gutenberg_Ramp class constructor to keep things organized. Otherwise, the gutenberg-ramp.php file would become cluttered and disorganized by containing core Gutenberg Ramp functionality and tweaks/hacks that are aimed at compatibilities or other Gutenberg Ramp functionality (like the UI).
I jumbled a few things together in this PR that I've been wanting to do for a while now:
$RFG
to$gutenberg_ramp
gutenberg_ramp_remove_dashboard_links
function instead of an anonymous function. Anonymous functions shouldn't be used with hooks for extensibility.$criteria
ingutenberg_ramp_load_gutenberg
Gutenberg_Ramp
class to theGutenberg_Ramp
class constructor to keep things organized. Otherwise, thegutenberg-ramp.php
file would become cluttered and disorganized by containing core Gutenberg Ramp functionality and tweaks/hacks that are aimed at compatibilities or other Gutenberg Ramp functionality (like the UI).