For as much as I talk about writing code that conforms to the WordPress Coding Standards and for using tools such as PHP CodeSniffer, there are times where I’ve found that you need to silence the errors for the sake of something you’re trying to do.
Case in point:
WordPress uses global variables to maintain certain data structures. As per the coding standards, you should not change the values of global variables.
As a rule of thumb, this is true. But what about in the case where you need to make a modification to the admin menu (which uses a global variable)?




