Title: Plugin does not support attributes
Last modified: January 27, 2022

---

# Plugin does not support attributes

 *  [dzeganovsky](https://wordpress.org/support/users/dzeganovsky/)
 * (@dzeganovsky)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/plugin-does-not-support-attributes/)
 * The file wp-content/plugins/email-subscribers/lite/public/partials/class-es-shortcode.
   php has a function render_form().
    there is a list of attributes, specifically
   attributes button_label and email_place_holder. But those attributes don’t work
   because the render_es_form function doesn’t pass them on.

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

 *  [Asmi Patel](https://wordpress.org/support/users/asmipatel/)
 * (@asmipatel)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/plugin-does-not-support-attributes/#post-15301917)
 * Hi [@dzeganovsky](https://wordpress.org/support/users/dzeganovsky/),
 * We are not able to replicate this issue on our end. Could you share your website
   link where you are seeing this issue so that we can check this? Or you can contact
   us [here ](https://www.icegram.com/contact/) as well and point us to this link
   for reference.
 * Thank you!
 *  Thread Starter [dzeganovsky](https://wordpress.org/support/users/dzeganovsky/)
 * (@dzeganovsky)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/plugin-does-not-support-attributes/#post-15302598)
 * Sorry, i can`t share my website link, but i can give you steps to reproduce
 * This snippet is drawing the subscribe form:
 *     ```
       <?php echo do_shortcode('[email-subscribers-form
           id="1"
           button_label="' . $subscribeLabel . '"
           email_place_holder="' . $subscribePlaceholder . '"
       ]') ?>
       ```
   
 * But plugin is ignore “button_label” & “email_place_holder” attributes.
 * File – wp-content/plugins/email-subscribers/lite/public/partials/class-es-shortcode.
   php
    Function – public static function render_es_form( $atts )
 * This function totally override $attrs variable by this code:
 *     ```
       $atts = shortcode_atts( array(
       	'id' => '',
       	'show-in-popup' => ''
       ), $atts, 'email-subscribers-form' );
       ```
   
 * So, when render_form( $form_data ) function is calling, this attributes is always
   empty and set by default value.

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

The topic ‘Plugin does not support attributes’ is closed to new replies.

 * ![](https://ps.w.org/email-subscribers/assets/icon-256x256.png?rev=2274172)
 * [Email Subscribers & Newsletters - Email Marketing, Post Notifications & Newsletter Plugin for WordPress](https://wordpress.org/plugins/email-subscribers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/email-subscribers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/email-subscribers/)
 * [Active Topics](https://wordpress.org/support/plugin/email-subscribers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/email-subscribers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/email-subscribers/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [dzeganovsky](https://wordpress.org/support/users/dzeganovsky/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/plugin-does-not-support-attributes/#post-15302598)
 * Status: not resolved