title: How to edit php code in WordPress Post file?
body: <p>I have a wordpress page. In that WordPress page, user will have access to the following Window to <code>Publish</code> their Post in to the webpage. </p>
  
  <p><img src="https://i.stack.imgur.com/JdAjx.jpg" alt="enter image description here"></p>
  
  <p>If the user enters an URL in any of the three filed I have marked in red above, my php code will look in to those URLs and determine if they are spam or not. Therefore, I want to put my php code inside the <code>Publish</code> button, so I can either disallow or allow the post after my php code run and determine if those URLs are spam or not. Can you please tell me the name of the wordpress file I should edit in order to put my php code in. I am new to wordpress and don’t know too much about their file structure. </p>