• 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)
  • Plugin Contributor Asmi Patel

    (@asmipatel)

    Hi @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 as well and point us to this link for reference.

    Thank you!

    Thread Starter dzeganovsky

    (@dzeganovsky)

    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.