Keyboard Shortcut to Publish Post on the Mac

I guess you need the Apple/Cmd key instead of the Alt key as the Ctrl/Strg is not the replacement for the Alt key. So it should be ⌘ + Shift + P. Note: I’m no Mac user, so you’ll to search the proper replacement in case yourself.

Remove WYSIWYG editor on all custom post type EXCEPT regular posts

A bit involved, but this should work: function remove_wysiwyg() { global $pagenow; if ( ‘post.php’ == $pagenow ) { $type = get_post_type( $_GET[‘post’] ); if( ‘post’ != $type || ‘page’ != $type ) add_filter(‘user_can_richedit’, ‘__return_false’); } elseif ( ‘post-new.php’ == $pagenow ) { if( isset( $_GET[‘post_type’] ) && ‘page’ != $_GET[‘post_type’] ) add_filter(‘user_can_richedit’, ‘__return_false’); } … Read more

Remove text tab

This requires two steps: 1) First, we need to hide the editor tabs, which can be accomplished easily enough using CSS. We’ll output some CSS to the admin head to do that: function hide_editor_tabs() { global $pagenow; // Only output the CSS if we’re on the edit post or add new post screens. if ( … Read more

tech