custom

a few seconds read
There may arise a need when developers want to hide the Visual editor aka WYSIWYG Editor from their Post types. If such is the case, you should just implement the following code in the functions.php file of your theme OR in the plugin files if you have a plugin installed to set up CPTs: add_filter('user_can_richedit', 'disable_wysiwyg_for_CPT'); function disable_wyswyg_for_CPT($default) {   global $post;   if ('movie' == get_post_type($post))     return false;  ...
3 minutes read
Everyone on internet knows what smilies or emoticons or emojis are. Smilies basically add emotions and expressions to write-ups. WordPress too, provides a basic set of over 20 emoticons to its users to use on their blogs. Some of the commonly used WordPress smilies are smile :), tongue :P, laughter :D. To know more about these basic WordPress smileys and their usage, see this document. Now, what if I want to add my custom emoticons to WordPress, each with a separate text-representation or punctu...