Noptin_Inpost::do_shortcode( array $atts )

Converts shortcode to html


Parameters Parameters

$atts

(array) (Required) An array containing the form id to display.


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/class-noptin-inpost.php

	public function do_shortcode( $atts ) {

		// Abort early if no id is specified
		if ( empty( $atts['id'] ) ) {
			return '';
		}

		// Prepare the form.
		$form = noptin_get_optin_form( trim( $atts['id'] ) );

		// Maybe return its html.
		if ( $form->can_show() ) {
			return $form->get_html();
		}

		return '';

	}


Top ↑

Changelog Changelog

Changelog
VersionDescription
1.0.5Introduced.

Top ↑

User Contributed Notes User Contributed Notes

30 day money back guarantee
Safe & Secure online payment
Custom CSS Slide Example
Custom Animation Example
Default Animation