WordPress at Your Fingertips
function is not described

SimplePie_Misc::atom_10_content_construct_type() public WP 1.0

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

No Hooks.

Return

null. Nothing.

Usage

$result = SimplePie_Misc::atom_10_content_construct_type( $attribs );
$attribs (required)
-

Code of SimplePie_Misc::atom_10_content_construct_type() WP 5.8.2

public static function atom_10_content_construct_type($attribs)
{
	if (isset($attribs['']['type']))
	{
		$type = strtolower(trim($attribs['']['type']));
		switch ($type)
		{
			case 'text':
				return SIMPLEPIE_CONSTRUCT_TEXT;

			case 'html':
				return SIMPLEPIE_CONSTRUCT_HTML;

			case 'xhtml':
				return SIMPLEPIE_CONSTRUCT_XHTML;
		}
		if (in_array(substr($type, -4), array('+xml', '/xml')) || substr($type, 0, 5) === 'text/')
		{
			return SIMPLEPIE_CONSTRUCT_NONE;
		}
		else
		{
			return SIMPLEPIE_CONSTRUCT_BASE64;
		}
	}

	return SIMPLEPIE_CONSTRUCT_TEXT;
}