Kses::product_description_allowed_html( array $allowed_tags, string $context )
Summary
Product Description Allowed HTML
Parameters
- $allowed_tags
-
(array) (Required) Array of allowed tags
- $context
-
(string) (Required) Context of kses tags.
Return
(array)
Source
File: src/BigCommerce/Util/Kses.php
public function product_description_allowed_html( $allowed_tags, $context ) { if ( 'bigcommerce/product_description' === $context ) { /** * Filters product description's allowed html * * @param array $allowed_html_tags Allowed HTML tags. */ return apply_filters( 'bigcommerce/product_description/allowed_html', array_merge( wp_kses_allowed_html( 'post' ), [ 'iframe' => [ 'src' => true, 'height' => true, 'width' => true, 'frameborder' => true, 'allowfullscreen' => true, ], ] ) ); } return $allowed_tags; }