Wp Email Capture Shortcode

Below, you’ll find a detailed guide on how to add the Wp Email Capture Shortcode to your WordPress website, including its parameters, examples, and PHP function code. Additionally, we’ll assist you with common issues that might cause the Wp Email Capture Plugin shortcode not to show or not to work correctly.

Before starting, here is an overview of the Wp Email Capture Plugin and the shortcodes it provides:

Plugin Icon
WordPress Email Marketing Plugin – WP Email Capture

"WordPress Email Marketing Plugin – WP Email Capture is a powerful tool to grow your email list, conduct successful campaigns, and boost audience engagement on your WordPress site."

★★★★✩ (18) Active Installs: 3000+ Tested with: 6.3.2 PHP Version: false
Included Shortcodes:
  • [wp_email_capture_form]

Wp Email Capture [wp_email_capture_form] Shortcode

The WP Email Capture plugin shortcode is a useful tool for adding a newsletter subscription form to your website. This shortcode calls upon the ‘wp_email_capture_form_process_atts’ function, which in turn invokes ‘wp_email_capture_form_page’. The end result is a streamlined process for integrating an email capture form on any page of your WordPress site.

Shortcode: [wp_email_capture_form]

Examples and Usage

Basic example – Displays the WP Email Capture form without any additional parameters.

[wp_email_capture_form /]

Advanced examples

Displays the WP Email Capture form with additional parameters. The parameters “id” and “title” are used to customize the form.

[wp_email_capture_form id="1" title="Subscribe Now!"/]

Another advanced usage of the shortcode can include multiple parameters like “id”, “title” and “button_text”. This will not only customize the form but also the text of the button.

[wp_email_capture_form id="2" title="Join Our Newsletter" button_text="Sign Up Now"/]

Please note that the parameters used in the shortcode must match the parameters defined in the PHP function ‘wp_email_capture_form_process_atts’.

PHP Function Code

In case you have difficulties debugging what causing issues with [wp_email_capture_form] shortcode, check below the related PHP functions code.

Shortcode line:

add_shortcode( 'wp_email_capture_form', 'wp_email_capture_form_process_atts' );

Shortcode PHP function:

function wp_email_capture_form_process_atts( $atts ) {
	return wp_email_capture_form_page( $atts );
}

Code file location:

wp-email-capture/wp-email-capture/wp-email-capture.php

Conclusion

Now that you’ve learned how to embed the Wp Email Capture Plugin shortcode, understood the parameters, and seen code examples, it’s easy to use and debug any issue that might cause it to ‘not work’. If you still have difficulties with it, don’t hesitate to leave a comment below.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *