@jakept So how would this work? I’ve put the code in a .php file and uploaded it to the directory but when I load the site it won’t work (just shows the content of the plugin in the top bar so I think the php code is either incomplete or invalid).
I’m not a PHP programmer so I’m not sure what I’m doing wrong or what I’m missing.
[edit] I found that I was missing the <?php ?> tags, works now! Thanks for your help!
-
This reply was modified 4 years, 5 months ago by dasuberadmin. Reason: Found what I was doing wrong
Hi Jacob,
I guess that explains it. I was editing wp-includes/rest-api/class-wp-rest-server.php.
Where can I find a file that I can edit that will persist?