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; }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |