SimplePie_Registry::get_class

Advertisement

Summery Summery

Get the class registered for a type

Syntax Syntax

SimplePie_Registry::get_class( string $type )

Description Description

Where possible, use create() or call() instead

Parameters Parameters

$type

(string) (Required)

Return Return

(string|null)

Source Source

File: wp-includes/SimplePie/Registry.php

	{
		if (!empty($this->classes[$type]))
		{
			return $this->classes[$type];
		}
		if (!empty($this->default[$type]))
		{
			return $this->default[$type];
		}

		return null;
	}

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.