wordpress如何对指定分类下的所有文章进行加密,下面编程教程网小编给大家简单介绍一下如何利用mysql语法实现这个功能!
利用mysql语法对指定分类下的所有文章进行加密
update wp_posts, wp_term_relationships, wp_term_taxonomy
set wp_posts.post_password = 'abcdefg'
where
wp_posts.id = wp_term_relationships.object_id
and
wp_term_taxonomy.taxonomy = 'category'
and
wp_term_taxonomy.term_taxonomy_id = wp_term_relationships.term_taxonomy_id
and
wp_posts.post_status = 'publish'
and
wp_posts.post_type = 'post'
and
wp_term_taxonomy.term_id = '1';
以上是编程学习网小编为您介绍的“wordpress如何对指定分类下的所有文章进行加密”的全面内容,想了解更多关于 mysqlwordpress 内容,请继续关注编程基础学习网。
织梦狗教程
本文标题为:wordpress如何对指定分类下的所有文章进行加密


基础教程推荐
猜你喜欢
- postgresql的jsonb数据查询和修改的方法 2023-07-20
- idea中使用mysql的保姆级教程(超详细) 2023-07-26
- Redis总结 2023-09-12
- Node.js实现简单管理系统 2024-01-10
- Ubuntu环境下mongodb安装配置详细步骤 2023-07-15
- MySQL删除视图(DORP VIEW)方法 2024-01-31
- windows操作系统,在phpstudy集成环境,安装redis扩展,并启用redis服务和客户端 2024-04-13
- Redis WATCH命令 2024-02-06
- 【推荐】.NETCore 简单且高级的库 csredis v3.0.0 2023-09-12
- 我是如何用2个Unix命令给MariaDB SQL提速的 2023-07-24