Add Custom Styles in WordPress TinyMCE Editor

WordPress TinyMCE editor

Adding custom styles to WordPress TinyMCE editor is very easy. But before styling your TinyMCE editor you should know about WordPress post editor. WordPress TinyMCE editor There are two modes of editing: Visual and Text. Choose the mode by clicking on the appropriate tab. Visual mode gives you a WYSIWYG editor. Click the last icon…

Prevent Google Analytics from Tracking Admin Pages

Prevent Google Analytics

Want to avoid Google Analytics from tracking your Admin pages? This handy snippet will prevent Google Analytics from tracking your Admin pages or anything else that you wish. Simply add this WordPress snippets after <body> starting tag <?php if (!current_user_can(‘level_10’)) { ?> /* Google Analytics Code */ <?php } ?> Here, level_10 is WordPress admin label…

Remove Admin Bar Link For Non Administrators

Remove Admin Bar WordPress

In the WordPress Dashboard, besides the main menu on the sidebar, you will also find a couple of menu links at the top. You can remove admin bar link from specific roles or users. This snippet below will remove the menu in the admin bar for users who aren’t an Administrator – adjust accordingly. Add…

Disable Post Revisions in WordPress

Disable Post Revisions in WordPress Without Plugin

One of the new features rolled out in WordPress involved post revisions. Revisions are a way for users to keep a working collection of each different version of a post and then revert back to it in the future if necessary. Some people think this is the greatest thing since lightsabers, others (such as myself)…

Modify WP Options Table Using WordPress Admin Panel

WP Options Table

As you probably know, the wp_options table stores a great deal of useful information, including everything from custom-field values, plugin settings, blog information, and much more. If any WP Options Table in the WordPress database needs its own friendly user interface, this would be it. Normally, you would access the wp_options table using a database interface…