Tag Archive for wordpress

Secure WordPress with Fail2Ban

Fail2Ban is a neat tool that watches your logfiles and executes actions  defined by you if a filter  matches. In the following I want to explain the basic functionality of fail2ban necessary to integrate with WordPress and we will install Slack notifications:  Basics Jails Jails are like configurations for services you want to monitor. You declare services and specify filters, ports, protocol …… Read more →

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 →

Child Pages Shortcode

With Child Pages Shortcode you can fetch the children of a page and arrange them in a nice list or overview. There are several ways to make use of the plugin. First you can use them in the code via hooks and second you can use shortcodes and a kind of template (that’s what I want to go into in… Read more →

Find broken shortcodes

If you recently changed your theme and used shortcodes from it or disabled plugins you maybe want to find all leftovers of them because they are not translated any more. You will find things like [shortcode attribute=”bla”] all over website. Obviously you don’t want to review each post on your website to find them manually. So there comes a little… Read more →