Email::ap_email_template()

Description #

Ajax callback for loading email template form.

Changelog #

VersionDescription
4.1.8Check for permission.
4.1.0Introduced.

Source #

File: addons/email/email.php

	public function ap_email_template() {
		if ( ! current_user_can( 'manage_options' ) ) {
			die();
		}

		check_ajax_referer( 'ap_email_template', '__nonce' );
		$template_slug = ap_sanitize_unslash( 'template', 'r' );

		\AnsPress\Addons\Email::init()->template_form( $template_slug );
		die();
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment