Title: IXR_Server::hasMethod
Published: July 6, 2022
Last modified: February 24, 2026

---

# IXR_Server::hasMethod( $method )

## In this article

 * [Source](https://developer.wordpress.org/reference/classes/ixr_server/hasmethod/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/classes/ixr_server/hasmethod/?output_format=md#related)

[ Back to top](https://developer.wordpress.org/reference/classes/ixr_server/hasmethod/?output_format=md#wp--skip-link--target)

## 󠀁[Source](https://developer.wordpress.org/reference/classes/ixr_server/hasmethod/?output_format=md#source)󠁿

    ```php
    function hasMethod($method)
    {
        return in_array($method, array_keys($this->callbacks));
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/ixr/class-ixr-server.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/IXR/class-IXR-server.php#L154)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/IXR/class-IXR-server.php#L154-L157)

## 󠀁[Related](https://developer.wordpress.org/reference/classes/ixr_server/hasmethod/?output_format=md#related)󠁿

| Used by | Description | 
| [IXR_Server::call()](https://developer.wordpress.org/reference/classes/ixr_server/call/)`wp-includes/IXR/class-IXR-server.php` |  |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fixr_server%2Fhasmethod%2F)
before being able to contribute a note or feedback.