WP_CLI\Dispatcher
CommandFactory::is_good_method()
Check whether a method is actually callable.
Method of the class: CommandFactory{}
No Hooks.
Return
true|false
.
Usage
$result = CommandFactory::is_good_method( $method );
- $method(ReflectionMethod) (required)
- -
CommandFactory::is_good_method() CommandFactory::is good method code WP-CLI 2.8.0-alpha
private static function is_good_method( $method ) { return $method->isPublic() && ! $method->isStatic() && 0 !== strpos( $method->getName(), '__' ); }