How To Hide WordPress Page Or Post Publish Button

How can I hide the publish button, when I edit or add new page or post

You can use jquery or css to hide WordPress Publish button.

function softwarehtec_hide_publish_button() {
        ?>
        <style>
            #publishing-action { display: none; }
        </style>
	<script type="text/javascript">
	jQuery(document).ready(function(){
		jQuery("#major-publishing-actions").html("");
	});
	</script>
        <?php
}
add_action( 'admin_head', 'softwarehtec_hide_publish_button' );
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments