WordPress 常用接口
简介 WordPress v4.4以后,已经内置了WP REST API。 接口文档:https://developer.wordpress.org/rest-api/ The WordPress REST API provides an interface for applications to interact with your WordPress site by sending and r […]

2024-05-04
875
0
0
WordPress 添加文章浏览次数
1,数据库相关表 WordPress 文章表中是没有文章点击次数这个字段的,所以把文章点击次数,保存在表 wp_postmeta 中。 2, 通用函数 /** * 设置文章浏览次数 */ function setPostViews($postID) { $count_key = 'post_views_count'; $count = get_post_meta($postID, $count_k […]

2024-05-04
1千
0
0
WordPress 插件开发
什么是 WordPress 插件 ? 插件( Plugins )是如何与 WordPress 交互的 WordPress 为插件提供了多种丰富的 APIs。每一种 API( 应用程序接口 )使插件和 WordPress 以不同的方式交互。下面是 WordPress 提供的主要 APIs 以及他们的功能列表: 插件: 给插件提供一系列的钩子( hooks )来使用 WordPress 的相关部分。W […]

2024-05-04
850
0
0
WordPress 数据库表结构
WordPress 一共有以下12个表,默认表前缀是 “wp_” wp_commentmeta 存储评论的元数据 meta_id:自增唯一ID comment_id:对应评论ID meta_key:键名 meta_value:键值 wp_comments 存储评论 comment_ID:自增唯一ID comment_post_ID:对应文章ID comment_author […]

2024-05-04
759
0
0
评论
-
番茄座 07-23问题已经修复 -
downey 06-08网址导航添加网址分类后就不能正… -
番茄座 05-13现在无法设置打开网站就是默认暗… -
VIP 05-11无法设置默认暗黑主题,无法发布… -
随时 05-11我测试开启暗黑模式无效