WP_CLI\Dispatcher
CommandFactory::is_good_method
Check whether a method is actually callable.
Метод класса: CommandFactory{}
Хуков нет.
Возвращает
true|false.
Использование
$result = CommandFactory::is_good_method( $method );
- $method(ReflectionMethod) (обязательный)
- .
Код CommandFactory::is_good_method() CommandFactory::is good method WP-CLI 2.13.0-alpha
private static function is_good_method( $method ) {
return $method->isPublic() && ! $method->isStatic() && 0 !== strpos( $method->getName(), '__' );
}