Today I needed to dynamically modify wordpress navigation menu from a custom plugin depending on some conditions. I couldn’t find the solution. So I read the codes which renders navigation menu on wordpress to remove some items from menu on-the-fly:
I was setting up my wordpress development environment in windows today. I wanted to have php unit tests for the plugin I have been developing for a few days, and I ran into an article which says wp-cli.phar cannot be used in windows! The article was about using PHPUnit to write wordpress plugin unit tests.