![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
wordpress
fareast_mzh
善假于物
展开
-
wordpress CRUD 数据库操作
1. 下载wordpresshttps://wordpress.org/download/wget https://wordpress.org/latest.zipunzip latest.zip -d D:\study\wordpress2. 修改配置文件cp wp-config-sample.php wp-config.php/** The name of the...原创 2019-05-24 14:58:00 · 932 阅读 · 0 评论 -
wordpress 添加自定义接口
* wp-admin/includes/ajax-actions.php添加回调函数function wp_ajax_my_test_handler() { $num = intval($_POST['num']); wp_send_json_success([ "num" => ++$num, ], 200);}*wp-admin/...原创 2019-06-17 18:02:31 · 3240 阅读 · 0 评论 -
wordpress 自带rest-api debug
对于/wp-json/接口:wp-includes/rest-api/class-wp-rest-request.php在__construct方法中添加代码 try { throw new RuntimeException("debug"); } catch (\RuntimeException...原创 2019-06-25 16:53:51 · 595 阅读 · 0 评论