Child Theme Function PHP
-
Will someone please help a poor frustrated soul? I’m a total beginner at all things WordPress, Buddypress and even further, CSS, PHP, etc. and I think this is an easy question, I just can’t figure it out.
I’m trying to make my child functions.php override the parent one in Buddypress 1.6.4 Default theme, but I can’t get any of it to work and it’s driving me bananas. Using the following code in the parent functions.php, I was able to change the default “wordpress@yourwebsite.com” email address but that’s obviously not sustainable as any update with wipe it clean. How do I make it work in my child theme?
Thanks,
Carlos
function res_fromemail($email) {
$wpfrom = get_option(‘admin_email’);
return $wpfrom;
}
function res_fromname($email){
$wpfrom = get_option(‘blogname’);
return $wpfrom;
}
add_filter(‘wp_mail_from’, ‘res_fromemail’);
add_filter(‘wp_mail_from_name’, ‘res_fromname’);
- The topic ‘Child Theme Function PHP’ is closed to new replies.