WpCustomDirectories plugin reworked