WordPress at Your Fingertips
function is not described

SimplePie_Sanitize::add_attributes() public WP 1.0

{} It's a method of the class: SimplePie_Sanitize{}

No Hooks.

Return

null. Nothing.

Usage

$SimplePie_Sanitize = new SimplePie_Sanitize();
$SimplePie_Sanitize->add_attributes( $attribs, fooooo, foooooooo );
$attribs **
-
Default: array(foo
fooooo **
-
Default: > array(foooooo
foooooooo **
-
Default: > array(fooooooooo

Code of SimplePie_Sanitize::add_attributes() WP 5.8.2

public function add_attributes($attribs = array('audio' => array('preload' => 'none'), 'iframe' => array('sandbox' => 'allow-scripts allow-same-origin'), 'video' => array('preload' => 'none')))
{
	if ($attribs)
	{
		if (is_array($attribs))
		{
			$this->add_attributes = $attribs;
		}
		else
		{
			$this->add_attributes = explode(',', $attribs);
		}
	}
	else
	{
		$this->add_attributes = false;
	}
}