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' );