Astra_Notices::add_data_attributes( array $allowedposttags, string $context )

Filters and Returns a list of allowed tags and attributes for a given context.


Description


Parameters

$allowedposttags

(array) (Required) array of allowed tags.

$context

(string) (Required) Context type (explicit).


Return

(array)


Source

File: inc/lib/astra-notices/class-astra-notices.php

		public function add_data_attributes( $allowedposttags, $context ) {
			$allowedposttags['a']['data-repeat-notice-after'] = true;

			return $allowedposttags;
		}

Changelog

Changelog
Version Description
1.0.0 Introduced.

User Contributed Notes

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