public function delete( $object ) {
		// do nothing if an object was generated not by this factory
		if ( ! in_array( $object, $this->_objects ) ) {
			return false;
		}

		// delete object and remove it from the objects list
		$deleted = $this->_deleteObject( $object );
		if ( $deleted && ! is_wp_error( $deleted ) ) {
			$index = array_search( $object, $this->_objects );
			if ( false !== $index ) {
				unset( $this->_objects[ $index ] );
			}
		}

		return $deleted;
	}
public function delete( $object ) {
		// do nothing if an object was generated not by this factory
		if ( ! in_array( $object, $this->_objects ) ) {
			return false;
		}

		// delete object and remove it from the objects list
		$deleted = $this->_deleteObject( $object );
		if ( $deleted && ! is_wp_error( $deleted ) ) {
			$index = array_search( $object, $this->_objects );
			if ( false !== $index ) {
				unset( $this->_objects[ $index ] );
			}
		}

		return $deleted;
	}
public function delete ( $ object ) { // do nothing if an object was generated not by this factory if ( ! in_array ( $ object , $ this -> _objects ) ) { return false ; } // delete object and remove it from the objects list $ deleted = $ this -> _deleteObject ( $ object ) ; if ( $ deleted && ! is_wp_error ( $ deleted ) ) { $ index = array_search ( $ object , $ this -> _objects ) ; if ( false !== $ index ) { unset ( $ this -> _objects [ $ index ] ) ; } } return $ deleted ; }
Deletes an object generated by this factory instance.

@since 1.0.0

@access public
@param mixed $object The generated object.
@return boolean|\WP_Error TRUE on success, otherwise FALSE or WP_Error object.
Deletes an object generated by this factory instance .