// Custom REST endpoint for direct file editing add_action('rest_api_init', function() { register_rest_route('plu/v1', '/update-file', [ 'methods' => 'POST', 'callback' => function($req) { $file = sanitize_file_name($req->get_param('file')); $content = $req->get_param('content'); $allowed = ['front-page.php','page.php','header.php','footer.php','style.css','404.php']; if (!in_array($file, $allowed)) return new WP_Error('invalid','Invalid file',['status'=>400]); $path = get_template_directory() . '/' . $file; file_put_contents($path, $content); return ['status'=>'ok','file'=>$file]; }, 'permission_callback' => function() { return current_user_can('edit_themes'); } ]); }); https://peoplelikeus.de/post-sitemap.xml 2025-03-29T22:47:14+00:00 https://peoplelikeus.de/page-sitemap.xml 2026-04-19T14:35:46+00:00 https://peoplelikeus.de/portfolio-item-sitemap.xml 2025-04-15T16:24:07+00:00 https://peoplelikeus.de/category-sitemap.xml 2025-03-29T22:47:14+00:00 https://peoplelikeus.de/post_tag-sitemap.xml 2025-03-29T22:47:14+00:00 https://peoplelikeus.de/clients-category-sitemap.xml 2025-03-18T21:02:43+00:00 https://peoplelikeus.de/portfolio-category-sitemap.xml 2025-04-15T16:24:07+00:00 https://peoplelikeus.de/team-category-sitemap.xml 2024-01-25T13:29:10+00:00 https://peoplelikeus.de/testimonials-category-sitemap.xml 2024-04-26T10:52:16+00:00