title: Wordpress gives the error "Something went wrong. Your change may not have been saved.(..)" when using the REMOTE_ADDR variable
body: <p>I'd like to set up the following - accessing a page from a specific IP will show a specific &lt; div > that'd be hidden for anyone else accessing the page from a different IP.</p>
  
  <p>Wordpress 5.2.2; I've tried a couple of ways to execute the following idea, but the general idea I had was to compare the REMOTE_ADDR with my handpicked address using an if statement, and then echo'ing the style to display the block I wanted (provided the address was the same). I also tried escaping PHP and executing the necessary CSS like that, but I had the same problem. I'm not an experienced programmer by any means, so I can only assume I'm making a mistake somewhere.</p>
  
  <p><code>if ($_SERVER['REMOTE_ADDR'] == 'xx.xxx.xx.xxx' ) {
  echo '&lt;style&gt;.elementor-element-6788e0e{display:block!important;}&lt;/style&gt;';
  }</code></p>
  
  <p>It's not necessarily the code that's not working - it actually serves its purpose, and the block is shown only when accessed through that IP. However, as soon as I put anything in between the if statement brackets, Wordpress barely functions. </p>
  
  <p>"Something went wrong. Your change may not have been saved. Please try again. There is also a chance that you may need to manually fix and upload the file over FTP." - When saving PHP.</p>
  
  <p>"Looks like something’s gone wrong. Wait a couple seconds, and then try again." - When saving CSS.</p>
  
  <p>Adding menu items doesn't work, etc.</p>
  
  <p>I'm hoping someone can educate me on the cause of these errors, or show me a more correct way of tackling the CSS problem.</p>
  
  <p>Thanks in advance!</p>