How To Fix The Misspelling Of WordPress In Your Post’s Content?
Add the following function into your newly written plugin (or functions.php file of your theme), to correct misspellings of wordpress to WordPress: function thefirst_content_replace( $content ) { return str_replace( ‘wordpress’, ‘WordPress’, $text ); } add_filter( ‘the_content’, ‘thefirst_content_replace’ ); thefirst_content_replace is...
How To Get All Users With A Specific Role
This WordPress tutorial shows you how to get all users with a specific role. This can be used for mass emailing subscribers, mass changing user roles, or whatever your developing heart desires! Sometimes as a WordPress plugin developer you want...
How To Hide Your Plugin’s Custom Fields
This tutorial shows you how to keep your plugin’s custom fields from being manually edited in the post editor. Very handy, and it keeps things nice and neat! Many plugins use custom fields to store data about individual posts. When...