从数据库中删除旧选项。

原型

upgrade_230_options_table()

源文件

路径:wp-admin/includes/upgrade.php

<?php
...
	foreach ( $posts as $post ) {
		$post_id = (int) $post->post_id;
		$term_id = (int) $post->category_id;
		$taxonomy = 'category';
		if ( !empty($post->rel_type) && 'tag' == $post->rel_type)
			$taxonomy = 'tag';
		$tt_id = $tt_ids[$term_id][$taxonomy];
		if ( empty($tt_id) )
...
?>

其他

英文文档:https://developer.wordpress.org/reference/functions/upgrade_230_options_table/