Is it possible to access the functions.php file just by using the admin web interface? I’m trying to access previously created (manually coded) custom post types and I’m having to jump through a lot of hoops because I can’t access the code in the functions.php file.

I’ve looked through a number of help pages, but the steps suggested always seem to involve the functions.php file (which I can’t access) or the use of import/export tools from the plugin that created the custom post types in the first place (and no plugin was used as far as I can tell).

This seems like a really basic issue, but I can’t figure it out for the life of me. Any help would be greatly appreciated!

1 Answer
1

It is sometimes possible to edit theme files, including functions.php, inside wp-admin. Many hosts and devs disable this feature since it can cause security issues as well as allow you to break the site. So if you can access the file via FTP, that’s generally the recommended method.

If you don’t see “Appearance > Editor” in your admin menu, either you don’t have permission to edit files (a role/capability issue), or else the feature has been disabled.

You can check your wp-config.php file and see if it has been disabled here – if it has, you’ll see define('DISALLOW_FILE_EDIT', true);. Though if you can access wp-config, you should also be able to access theme files. 🙂 If this is not the case, check with your host to see whether they have disabled file editing in the admin area and to find out whether they can enable it for your site.

Leave a Reply

Your email address will not be published. Required fields are marked *