Email Subject Line – Custom Fields
-
Greetings,
I’m trying to resolve a small issue with the use of this plugin. I’m wanting to adjust it so that the Email Subject comes with a Custom Field I have created included.
I’ve found the subject line in
class-wp-resume-manager-email-notification.phpand already made adjustments. The issue is it’s not pulling in the custom field despite using the documentation that I have found here: https://plugins.smyl.es/docs-kb/output-custom-field-values-using-php/?v=79cba1185463Here is what I have so far:
$subject = sprintf( __( 'New Resume Submission From %s - [%s]', 'wp-job-manager-resumes' ), $resume->post_title, the_custom_field( 'candidate_title' ));The
candidate_titleis the Meta Key shown in the Custom Fields UI, but isn’t pulling the data through. I have tried with these following edits too;$subject = sprintf( __( 'New Resume Submission From %s - [%s]', 'wp-job-manager-resumes' ), $resume->post_title, the_custom_field( 'candidate_title', $resume_id));$subject = sprintf( __( 'New Resume Submission From %s - [%s]', 'wp-job-manager-resumes' ), $resume->post_title, $resume->the_custom_field( 'candidate_title'));Any recommendations would be amazing.
Kind regards
The topic ‘Email Subject Line – Custom Fields’ is closed to new replies.