WP_Hook::offsetSet( mixed $offset, mixed $value )

Sets a value at a specified offset.

Parameters Parameters


(mixed) (Required) The offset to assign the value to.


(mixed) (Required) The value to set.

Top ↑

Source Source

File: wp-includes/class-wp-hook.php

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

Top ↑

Changelog Changelog

Version Description
4.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.