Allow multiple word classes with a -
aubreypwd opened this issue · 0 comments
aubreypwd commented
Here, if you create a class like, Edit_Posts
you have to create a file like class-edit_posts.php
which should be class-edit-posts.php
.
$file = 'class-' . strtolower( str_replace( '_', '-', end( $parts ) ) ) . '.php';
...is better.