• There’s some stuff in one of the admin areas that I’d like to edit (text mainly). I found the actual function that controls the text in the wp-admin/ folder in one of the core files. How would I go about putting the code into my functions.php file so that I can edit it and not worry about hacking core files? Do I simply copy and paste the function? That doesn’t seem to work?

Viewing 2 replies - 1 through 2 (of 2 total)
  • What’s wrong with editing the core file? As long as you’re confident in what you’re changing, and the WP installation isn’t being distributed (with expectations of it working in its original form), then you should be fine.

    As always in these situations, you risk losing your hacks when you upgrade WordPress. How about trying to implement the functionality in a new plugin that you install? The plugin could maybe even check and replace the particular function you’re needing to edit. So, when you upgrade WP, the plugin stays along for the ride, and patches the function as necessary.

    -WCC

    Thread Starter lilqhgal

    (@lilqhgal)

    Thanks WWC. Problem is, I’m a frontend designer and not a backend developer so I’m way in over my head here. I just wanted to edit some of the text and options in the back end for a particular theme I’m designing and it’s not working how I want. The theme I’m developing will have a custom image feature for the header, but I do not want to allow the option of custom text color, so if I can simply remove the “instructions” section of it, that would take care of the issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘functions.php instead of hacking core files?’ is closed to new replies.