AnsPress_Hooks::safe_style_css( array $attr )

Description #

Allowed CSS attributes for post_content

Parameters #

  • $attr
    array (Required) Allowed CSS attributes.

Changelog #

VersionDescription
4.1.11Introduced.

Source #

File: includes/hooks.php

	public static function safe_style_css( $attr ) {
		global $ap_kses_check; // Check if wp_kses is called by AnsPress.

		if ( isset( $ap_kses_check ) && $ap_kses_check ) {
			$attr = array( 'text-decoration', 'text-align' );
		}
		return $attr;
	}

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