I actually resolved the namespace conflicts that came with composer. As described in the other post I prefixed these 3rd party libraries and commit them to my repository (I placed them in lib/vendor/<vendor>/<package> ). I also use an PSR-4 autoloader ( from fig-standards ) to load these libs (make sure you prefix the class name at least or put it in your namespace):… Read more →
Code
WordPress + Composer = ?
Using composer to install 3rd party libraries for your WordPress plugin feels like state of the art in comparison to other php projects. To get there you set your minimum required php version up to 5.3, introduced namespaces and introduced composer. You spend hours tuning your plugin and made use of well known libraries like pimple, twig and an orm… Read more →
Maintaining a WordPress Plugin
It’s about 2 years that WP Mail Logging is available in the plugin repository. In the following I want to talk about my experience with making a WordPress plugin. Scaffolding I always wanted to learn more about WordPress development and WordPress Plugin Development in first place since I started my first Website with WordPress in 2007 or so and misusing… Read more →
Controlling Nav Menu Generation
You might want to tweak the output of your menu items in WordPress. You can use this to remove or change a link from a specific item. To do so we can make use of the filter walker_nav_menu_start_el – it’s called for each traversed menu item when building the menu. This is actually done in the nav-menu-template.php script in the class Walker_Nav_Menu and… Read more →