WordPress at a glance
function is not described

WP_Hook::offsetSet() public WP 4.7.0

Sets a value at a specified offset.

{} It's a method of the class: WP_Hook{}

No Hooks.

Return

Null. Nothing.

Usage

$WP_Hook = new WP_Hook();
$WP_Hook->offsetSet( $offset, $value );
$offset(mixed) (required)
The offset to assign the value to.
$value(mixed) (required)
The value to set.

Changelog

Since 4.7.0 Introduced.

Code of WP_Hook::offsetSet() WP 5.5.2

<?php
public function offsetSet( $offset, $value ) {
	if ( is_null( $offset ) ) {
		$this->callbacks[] = $value;
	} else {
		$this->callbacks[ $offset ] = $value;
	}
}