Yoast\WP\Lib

Model::__callStatic()public staticYoast 1.0

Calls static methods directly on the ORM

Метод класса: Model{}

Хуков нет.

Возвращает

Массив. Result of the static call.

Использование

$result = Model::__callStatic( $method, $arguments );
$method(строка) (обязательный)
The method to call.
$arguments(массив) (обязательный)
The arguments to use.

Код Model::__callStatic() Yoast 22.4

public static function __callStatic( $method, $arguments ) {
	if ( ! \function_exists( 'get_called_class' ) ) {
		return [];
	}

	$model = static::factory( static::class );

	return \call_user_func_array( [ $model, $method ], $arguments );
}