First post image auto set as featured image

Sometimes we need to grab the first post image as our WordPress Features Post Image. The following code snippet will save your first post image as your Features Post image. function apbd_auto_featured_image() { global $post; if (!has_post_thumbnail($post->ID)) {...

Create Custom WordPress User Roles

Sometimes we need to add custom user roles in our WordPress CMS. The following code snippets will add a custom user role inside your CMS. For more roles, please see the capabilities from Codex or WordPress documentary. This is just an example to start it right away....

Remove Query Strings from Static Resources

When it comes to WordPress performance, this question comes up quite a bit, and that is how to remove query strings from static resources. Your CSS and JavaScript files usually have the file version on the end of their URLs, such as domain.com/style.css?ver=4.6. Some...