protected function _delete( $args, $assoc_args, $callback ) {
		$status = 0;

		if ( Utils\get_flag_value( $assoc_args, 'defer-term-counting' ) ) {
			wp_defer_term_counting( true );
		}

		foreach ( $args as $obj_id ) {
			$result = $callback( $obj_id, $assoc_args );
			$status = $this->success_or_failure( $result );
		}

		if ( Utils\get_flag_value( $assoc_args, 'defer-term-counting' ) ) {
			wp_defer_term_counting( false );
		}

		exit( $status );
	}
protected function _delete( $args, $assoc_args, $callback ) {
		$status = 0;

		if ( Utils\get_flag_value( $assoc_args, 'defer-term-counting' ) ) {
			wp_defer_term_counting( true );
		}

		foreach ( $args as $obj_id ) {
			$result = $callback( $obj_id, $assoc_args );
			$status = $this->success_or_failure( $result );
		}

		if ( Utils\get_flag_value( $assoc_args, 'defer-term-counting' ) ) {
			wp_defer_term_counting( false );
		}

		exit( $status );
	}
protected function _delete ( $ args , $ assoc_args , $ callback ) { $ status = 0 ; if ( Utils \ get_flag_value ( $ assoc_args , 'defer-term-counting' ) ) { wp_defer_term_counting ( true ) ; } foreach ( $ args as $ obj_id ) { $ result = $ callback ( $ obj_id , $ assoc_args ) ; $ status = $ this -> success_or_failure ( $ result ) ; } if ( Utils \ get_flag_value ( $ assoc_args , 'defer-term-counting' ) ) { wp_defer_term_counting ( false ) ; } exit ( $ status ) ; }
Delete a given database object.
Exits with status.

@param array $args Collection of one or more object ids to delete.
@param array $assoc_args Any arguments needed for the callback function.
@param callable $callback Function used to delete object.
Delete a given database object . Exits with status .