Determines if the request is the given method.
Parameters
$method
stringrequired- HTTP method.
Source
public function is_method( $method ) {
return $this->get_method() === strtoupper( $method );
}
Changelog
Version | Description |
---|---|
6.8.0 | Introduced. |
Determines if the request is the given method.
$method
stringrequiredpublic function is_method( $method ) {
return $this->get_method() === strtoupper( $method );
}
Version | Description |
---|---|
6.8.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.