我正在寻找一种方法来导入一批具有相同名称和发布日期的帖子的多个帖子。
类中的代码-wp-import.php. Code:
$post_exists = apply_filters( 'wp_import_existing_post', $post_exists, $post );
发布于 2022-06-13 19:26:11
禁用WordPress默认导入程序重复检查:例如:在functions.php中
add_filter( 'wp_import_existing_post', function ( $post_exists ) {
$post_exists = false;
return $post_exists;
} );
https://stackoverflow.com/questions/71007601
复制相似问题