I want to create a PHP file through WordPress dashboard without using ftp/c-panel, as I have checked and I found that you can create a PHP file through adding code in header.php But I don’t have header.php in child theme as well and no access to cPanel. Any suggestion how I can create php file from WordPress dashboard appearance->editor by putting some code in functions.php?
Thank you in advance.
Put this code in your function.php file and run the site
I have modified the answer to be able to: