types, true ) ) { return false; } if ( ! isset( $this->items[ $type ] ) ) { $this->items[ $type ] = array(); } $this->items[ $type ][] = $value; return true; } public function all( $type ) { return isset( $this->items[ $type ] ) ? $this->items[ $type ] : array(); } public function register_uninstall( callable $callback ) { $this->uninstall[] = $callback; } public function uninstall_callbacks() { return $this->uninstall; } }