WordPress\AiClientDependencies\Psr\Http\Message
ServerRequestInterface::withoutAttribute
Return an instance that removes the specified derived request attribute.
This method allows removing a single derived request attribute as described in getAttributes().
This method MUST be implemented in such a way as to retain the immutability of the message, and MUST return an instance that removes the attribute.
Method of the class: ServerRequestInterface{}
No Hooks.
Returns
static.
Usage
$ServerRequestInterface = new ServerRequestInterface(); $ServerRequestInterface->withoutAttribute( $name ): ServerRequestInterface;
- $name(string) (required)
- The attribute name.
Notes
- See: getAttributes()
ServerRequestInterface::withoutAttribute() ServerRequestInterface::withoutAttribute code WP 7.0
public function withoutAttribute(string $name): ServerRequestInterface;