Title: Missing Placeholders
Last modified: November 6, 2019

---

# Missing Placeholders

 *  Resolved [deyson](https://wordpress.org/support/users/deyson/)
 * (@deyson)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/missing-placeholders/)
 * Hello and good day.
    It seems that the placeholders are missing. The question
   mark does not show anything and nothing below the Placeholder Title. My goal 
   was to get the Customer’s Email Address and first name.
 * Thank you and have an amazing day! 😊
 * [http://files.deyson.com/yCqw1eS](http://files.deyson.com/yCqw1eS)
    -  This topic was modified 6 years, 7 months ago by [deyson](https://wordpress.org/support/users/deyson/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fmissing-placeholders%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 12 replies - 1 through 12 (of 12 total)

 *  Plugin Contributor [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/missing-placeholders/#post-12103885)
 * Thanks I can’t seem to recreate, Which email type is this happening on?
 * Ben
 *  Thread Starter [deyson](https://wordpress.org/support/users/deyson/)
 * (@deyson)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/missing-placeholders/#post-12107192)
 * It is happening on all of them.
 * Is there a shortcode for a customer’s email address? I figured out the First 
   name.
 * Thank you.
 *  Plugin Contributor [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/missing-placeholders/#post-12108005)
 * You can add customers email as a placeholder, see this code:
 *     ```
       add_filter( 'kadence_woomail_order_body_text', 'custom_function_for_billing_email', 10, 2 );
       function custom_function_for_billing_email( $text, $order ) {
       if ( is_a( $order, 'WC_Order' ) ) {
       $text = str_replace( '{billing_email}',  $order->get_billing_email(), $text );
       }
       return $text;
       }
       ```
   
 * That would make `{billing_email}`the placeholder.
 * Can you tell me what other plugins you have installed? Also what theme you are
   using?
 * Ben
 *  Thread Starter [deyson](https://wordpress.org/support/users/deyson/)
 * (@deyson)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/missing-placeholders/#post-12108056)
 * Hello, The code did not work, I added it to Functions.php. I get this result 
   in my test email: User email: {billing_email}
 * I am using the Astra Pro theme and many other plugins.
 * Thank you.
 *  Thread Starter [deyson](https://wordpress.org/support/users/deyson/)
 * (@deyson)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/missing-placeholders/#post-12108070)
 * The other thing is that when I request a new password on my website, I get a 
   plain text email, not the beautiful new style I had created with your plugin.
 *  Plugin Contributor [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/missing-placeholders/#post-12108366)
 * Hey,
    1. Are you testing with an order email. That code is not for new account
   emails since it’s the billing email not user email. It will only work on order
   emails.
 * 2. If you request through WordPress Core then you will get core emails. If you
   request through Woocommerce then you will get woocommerce emails. This plugin
   doesn’t edit WordPress core emails. So you need to make sure you request from
   the woocommerce my-account page.
 * Ben
 *  Thread Starter [deyson](https://wordpress.org/support/users/deyson/)
 * (@deyson)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/missing-placeholders/#post-12111239)
 * Hello.
 * I was testing with the lost password template.
 * It seems on the account page lost password link redirects to the WordPress core.
   I will see how I can fix it so it stays on the Woocommerce account page.
 * Thank you.
 *  Thread Starter [deyson](https://wordpress.org/support/users/deyson/)
 * (@deyson)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/missing-placeholders/#post-12112342)
 * Hello,
 * I was able to figure out the issue so now the password reset is Woocommerce’s
   and not WordPress core.
    However, now when I add the shortcode you had provided,
   it does not work. The Reset Password email shows this: {billing_email}
 * Please let me know what you think. Thank you and have an amazing day.
 *  Plugin Contributor [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/missing-placeholders/#post-12112452)
 * Hey,
    Sorry if I wasn’t clear before.
 * > That code is not for new account emails since it’s the billing email not user
   > email. It will only work on order emails.
 * You would have to create a different placeholder for password emails that queried
   the user not the billing since it’s not an order email.
 * Ben
 *  Plugin Contributor [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/missing-placeholders/#post-12112454)
 * An example of that could be a function like this:
 *     ```
       add_filter( 'kadence_woomail_no_order_body_text', 'custom_function_for_user_email', 10, 2 );
       function custom_function_for_user_email( $text, $email ) {
       if ( is_a( $email->object, 'WP_User' ) ) {
       $text = str_replace( '{customer_email}',  $email->object->user_email, $text );
       }
       return $text;
       }
       ```
   
 *  Thread Starter [deyson](https://wordpress.org/support/users/deyson/)
 * (@deyson)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/missing-placeholders/#post-12112644)
 * That worked! Thank you! 🙂
 * Have an amazing day. P.S. I have been telling everyone about your plugin. I think
   it is the best and easiest way to make beautiful email templates. Keep up the
   great work! 🙂
 * _Deyson
 *  Plugin Contributor [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * (@britner)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/missing-placeholders/#post-12119384)
 * Glad to hear it!
    Ben

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Missing Placeholders’ is closed to new replies.

 * ![](https://ps.w.org/kadence-woocommerce-email-designer/assets/icon-256x256.png?
   rev=3115863)
 * [Kadence WooCommerce Email Designer](https://wordpress.org/plugins/kadence-woocommerce-email-designer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/kadence-woocommerce-email-designer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/kadence-woocommerce-email-designer/)
 * [Active Topics](https://wordpress.org/support/plugin/kadence-woocommerce-email-designer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/kadence-woocommerce-email-designer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/kadence-woocommerce-email-designer/reviews/)

 * 12 replies
 * 2 participants
 * Last reply from: [Ben Ritner – Kadence WP](https://wordpress.org/support/users/britner/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/missing-placeholders/#post-12119384)
 * Status: resolved