| INFO PROPERTY | VALUE |
|---|---|
| Program Name | EHW Reviews Theme |
| Project Type | WordPress Theme |
| File Name | README.md |
| Date Created | 03/15/2025 |
| Date Modified | 03/16/2024 |
| Version | 00.00.01 |
| Programmer | Eric Hepperle |
Laravel Mix works (VID 15)
single-cars.php: Form success (VID 14)

Laravel Mix works (VID 15)
Heres a code snippet I created with the help of Perplexity AI that lets me display and use ACF fields as custom dynamic tags in WPForms
- Add to functions.php or a custom plugin
/**
* Summary of dynamic_acf_smart_tags:
*
* - Not sure why this works, but it does. Perplexity AI helped.
* @param mixed $tags
*
* Ref:
* - https://www.perplexity.ai/search/i-m-trying-to-include-an-acf-c-bDVrWF9dQamDSSUNDcJonA
*/
function dynamic_acf_smart_tags($tags) {
$tags['acf_field'] = 'ACF Field';
return $tags;
}
add_filter('wpforms_smart_tags', 'dynamic_acf_smart_tags');
function process_dynamic_acf_smart_tags($content, $tag) {
if (strpos($tag, 'acf_field_') === 0) {
$field_name = str_replace('acf_field_', '', $tag);
$field_value = get_field($field_name, get_the_ID());
$content = str_replace('{acf_field_' . $field_name . '}', $field_value, $content);
}
return $content;
}
add_filter('wpforms_smart_tag_process', 'process_dynamic_acf_smart_tags', 10, 2);// PHP MAILER SMTP OVERRIDE
// REF: https://github.com/PHPMailer/PHPMailer/
// https://www.youtube.com/watch?v=YtNraQxUTM0
//
// NOTE: SMTP_LOGIN, SMTP_PASSWORD are defined in wp-config.php
//
add_action('phpmailer_init','custom_mailer');
function custom_mailer( PHPMailer $phpmailer ) {
$from_email = 'noreply@yoursite.com';
$from_name = 'Your Site No-Reply';
$host = 'smtp.your-isp-server.com';
$port = 587;
$smtp_secure = 'tls';
// $mail_body = '<p><strong>Hello!</strong> This is an email sent with PHPMAILER</p>';
// SMTP / Server Settings
// $phpmailer->SMTPDebug = 2;
$phpmailer->SetFrom($from_email, $from_name);
$phpmailer->Host = $host;
$phpmailer->Port = $port;
$phpmailer->SMTPAuth = true;
$phpmailer->SMTPSecure = $smtp_secure;
$phpmailer->Username = SMTP_LOGIN;
$phpmailer->Password = SMTP_PASSWORD;
$phpmailer->isSMTP();
// $phpmailer->isHTML(true);
// $phpmailer->Subject = $phpmailer->Subject . ' - EXTRA SUBJECT PART!';
// $phpmailer->Body = $phpmailer->Body . $mail_body . '<br>This is a <b>SIGNATURE</b><br>';
// $phpmailer->AltBody = strip_tags($mail_body);
}Tutwrk WordPress WordPress Themes Themes from Scratch Eric Hepperle Mr Digital WordPress Classic Theme WPForms Forms Plugin PHPMailer PHP Mail WordPress Email
This is a custom PHP theme with sidebar on the Right. [Following MrDigital's excellent tutorial]


