Yoast\WP\Lib
Model::__callStatic
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() Model:: callStatic Yoast 26.5
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 );
}