Does this require a child theme?
-
Hello all,
I need to correct some typos in an outgoing user notification email that my theme uses.
The theme documentation says that I need to create a child theme and somehow enter some code, etc. I am not a developer and this is over my head. ??
I have read that with the latest WordPress, a child theme is not always necessary.
Below are the instructions provided by the theme developer to fix their form text.
Question: Does this function require creating a child theme or is there an easier method to perform this fix?
Your help is appreciated!
***
Change the notification message of Post SubmissionUse these two filters
$subject = apply_filters(‘videopro_post_submission_user_notification_subject’, $subject);
and
$message = apply_filters(‘videopro_post_submission_user_notification_message’, $message, $video_permalink);Following these steps
1. To change the subject of the message, add these lines into /functions.php of your child theme add_filter(‘videopro_post_submission_user_notification_subject’,’my_post_submission_subject_filter’, 10, 1);
2. function?my_post_submission_subject_filter($subject){
3. $new_subject = ‘Your post submission has been approved’;
4. return $new_subject;
5. }
6. ?
7. To change the content of the message, add these lines into /functions.php of your child theme add_filter(‘videopro_post_submission_user_notification_message’, ‘my_post_submission_content_filter’,?10, 2);
8. function?my_post_submission_content_filter($message, $video_permalink){
9. $new_content = ‘Congratulation! Your submission has been approved. You can see it here:?‘ . $video_permalink;
10. return $new_content;
11. }
12. ?
13. Change the text as you wish.***
- The topic ‘Does this require a child theme?’ is closed to new replies.