title: How to remove "add new" button from the editor page of a custom post type in wordpress?
body: <p>I have a custom post type named "jxta_home". I have removed add new button from the submenu and edit page by using the following code-</p>
  
  <pre><code>&lt;?php
  function disable_new_posts() {
  
      global $submenu;
      unset($submenu['edit.php?post_type=jxta_home'][10]);
  
      // Hide link on listing page
      if (isset($_GET['post_type']) &amp;&amp; $_GET['post_type'] == 'jxta_home')  {
          echo '&lt;style type="text/css"&gt;
          .page-title-action, .submitdelete { display:none; }
          &lt;/style&gt;';
      } 
  }
  </code></pre>
  
  <p>But the add new button is still showing on the inner editor page. I want to remove it from there too. How can I remove it from the inner editor page?</p>
  
  <p><a href="https://i.stack.imgur.com/3T8XX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3T8XX.png" alt="enter image description here"></a></p>