Tag Archives: admin
This short snippet will add three colors (#15375c, #3366FF and #9fb83f) to color picker of WordPress editor. Its pretty useful if you allow administrators and authors to select the common colors of your website.
Many developer used Property, Car, Product and several others as a custom post type which, by default, sorted by publishing date (very odd). This fairly simple snippet details how one can add a sortable numeric column (for example a pricing column) in listing view of custom post type. It is quite useful as custom post types are getting popular day by day.
In this tutorial, we will show you a trick to create a new row in post editor giving you ability to change text font family, size, style, converting text to superscript or subscript and adding a horizontal rule. It is pretty simple and straight.
Add following snippet to “functions.php” Snippet Result All emails sent out using WordPress wp_email function will be treated as an HTML e-mails by default. So you can use HTML tags like , etc.
Add following snippet to “functions.php” Snippet Result All the contributors will be redirected to ‘http://www.url-to-redirect.com’ upon login. You can find list of WordPress User Roles and Capabilities on Codex.
Add following snippet to “functions.php” Snippet Result It will change the default hover title (‘Enter Title Here’) to the ‘Please Specify Post Title’. +1 You can use the same code to make it work with the custom post types. Just add another case with the custom type and specify its title.