Astra_Addon_Kses::astra_addon_form_with_post_kses_protocols()

Echo kses allowed ‘post’ kses protocols along with ‘form’ tag.


Description


Return

(array) Return the array for allowed protocols.


Source

File: classes/class-astra-addon-kses.php

	public static function astra_addon_form_with_post_kses_protocols() {
		return apply_filters(
			'astra_addon_form_post_kses_protocols',
			array_merge(
				array(
					'div'   => array(
						'class'  => array(),
						'id'     => array(),
						'style'  => array(),
						'data-*' => true,
						'align'  => array(),
					),
					'form'  => array(
						'class'          => array(),
						'id'             => array(),
						'action'         => array(),
						'role'           => array(),
						'data-*'         => true,
						'accept'         => array(),
						'accept-charset' => array(),
						'enctype'        => array(),
						'method'         => array(),
						'name'           => array(),
						'target'         => array(),
					),
					'input' => array(
						'class'        => array(),
						'placeholder'  => array(),
						'data-*'       => true,
						'type'         => array(),
						'role'         => array(),
						'value'        => array(),
						'name'         => array(),
						'autocomplete' => array(),
					),
				),
				self::astra_addon_svg_kses_protocols()
			)
		);
	}

Changelog

Changelog
Version Description
4.1.1 Introduced.


User Contributed Notes

You must log in before being able to contribute a note or feedback.