noptin_get_optin_templates()

Returns optin templates.


Return Return

(array)


Top ↑

Source Source

File: includes/functions.php

function noptin_get_optin_templates() {
	$custom_templates  = get_option( 'noptin_templates' );
	$inbuilt_templates = include locate_noptin_template( 'optin-templates.php' );

	if ( ! is_array( $custom_templates ) ) {
		$custom_templates = array();
	}

	$templates = array_merge( $custom_templates, $inbuilt_templates );

	return apply_filters( 'noptin_form_templates', array_map( 'noptin_convert_classic_template', $templates ) );

}


Top ↑

Changelog Changelog

Changelog
VersionDescription
1.0.7Introduced.

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