How to hide editor, but keep media library access

The media_upload_tabs filter passes a single argument containing an array of the tabs, you can unset() them to remove them. The array looks something like this: Array ( [type] => From Computer [type_url] => From URL => Gallery [library] => Media Library ) to remove the media library tab: function remove_media_library_tab($tabs) { unset($tabs[‘library’]); return $tabs; … Read more

Hide a CPT from specific pages

I assume your page name is subscribe for Jquery code you have to specifiy pathname not whole wp url ; jQuery(document).ready(function($) { if (window.location.pathname == “/theme/subscribe/”) { document.getElementsByClassName(“subscribe”).style.display=”none”; } }); in php code here is same example using page name or slug ; <?php if(!is_page(‘subscribe’) ) { ?> <style>.subscribe-content{display: none!important;}</style> <?php } ?> You can … Read more