创建前,可以用get_pages()函数获取所有页面,然后迭代数组, 用strtolower()统一双方名称,从而判断要创建的页面是否已经存在了wp_insert_post( array $postarr, ...
確定! 回上一頁