Articles of admin ui

Is there a way to remove the default css from TinyMCE?

I’m working on getting the editor to look more like the front end by adding extra CSS to the TinyMCE rich text editor. WordPress adds /wp-includes/js/tinymce/skins/lightgray/content.min.css and /wp-includes/js/tinymce/skins/wordpress/wp-content.css by default. Is there an easy way to remove this?

Prevent Selected Terms Rising to the Top

When you’re editing a post and select a child category or term, and update, the selected terms appear at the top ( leading to potentially confusing situations where ‘foo’ ‘foo’ and ‘foo’ are selected each with different parents and no way to tell them apart ). How do I prevent this behaviour? Either by showing […]

How to save dismissable notice state in WP 4.2?

In WordPress 4.2 the is-dismissible class was introduced to allow notices to be dismissed. This code is working to add the notice. function prefix_deprecated_hook_admin_notice() { if ( has_filter( ‘prefix_filter’ ) ) { ?> <div class=”updated notice is-dismissible”> <p><?php _e( ‘Notice’, ‘my-text-domain’ ); ?></p> </div> <?php } } add_action( ‘admin_notices’, ‘prefix_deprecated_hook_admin_notice’ ); I am able to […]

How to hook in and modify the new revisions UI (3.6+)?

Let’s say I want to add some post_meta into the “new” revisions UI. I’m saving some meta on revisions only, and want to display it on this screen. Normally, I’d open up wp-admin/revisions.php look for some hooks and code away. But the revisions page is all done with Backbone. I don’t know Backbone (totally willing […]

Add on the fly tabs to plugin options

Hi I am building a plugin options page. What I’d really like to do is implement repeatable tabs (which I know is possible with the Settings API), but with a twist I haven’t seen in any options panel till now. I’d like to create new tabs on the fly, exactly like the ‘Menus’ section in […]