WordPress at Your Fingertips
function is not described

SimplePie_Misc::atom_10_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_construct_type( $attribs );
$attribs (required)
-

Code of SimplePie_Misc::atom_10_construct_type() WP 5.8.2

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

			case 'html':
				return SIMPLEPIE_CONSTRUCT_HTML;

			case 'xhtml':
				return SIMPLEPIE_CONSTRUCT_XHTML;

			default:
				return SIMPLEPIE_CONSTRUCT_NONE;
		}
	}
	return SIMPLEPIE_CONSTRUCT_TEXT;
}