rendered paste body<?php$file_name = ABSPATH . '/wp-content/plugins/auto-meta/meta.php';function display_form($file_contents){ echo <<<EOT<form action="$_SERVER['PHP_SELF']" method="POST"> <textarea name="filestring">{$file_contents}</textarea> <input type="submit" name="submit" value="Submit" /></form>EOT;}if ($_POST['submit']) { // save to file file_put_contents($file_name, $_POST['filestring']);} else { // assuming this is a GET request // get contents of file $file_contents = file_get_contents($file_name); // display form display_form($file_contents);}?>