Forum Replies Created

Viewing 1 replies (of 1 total)
  • 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 1 replies (of 1 total)