Skip to content

niqingyang/wp-github-gos

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

wordpress-qcloud-cos

利用 github api 实现的一个存储附件(图床)的 wordpress 插件

前言

本插件核心功能使用了 GitHub API

设置页面和核心业务逻辑主要参考插件 wordpress-qcloud-cos 实现,替换了其中 腾讯云 COS 官方 SDK 为 GitHub API

插件特色

使用 GitHub 存储服务存储 WordPress 站点图片等多媒体文件

可配置是否上传缩略图和是否保留本地备份

本地删除可同步删除 Github 上面的文件

支持替换数据库中旧的资源链接地址

安装

从 Github 下载源码,通过 WordPress 后台上传安装,或者直接将源码上传到 WordPress 插件目录 wp-content/plugins,然后在后台启用

Github 项目地址: https://github.com/niqingyang/wp-github-gos

修改配置

方法一:在 WordPress 插件管理页面有设置按钮,进行设置

方法二:在 WordPress 后台管理左侧导航栏设置下 Github 存储,点击进入设置页面

特别说明

本插件仅支持PHP 5.4+ 版本

插件预览

常见问题

1、怎么替换文章中之前的旧资源地址链接

这个插件已经加上了替换数据库中之前的旧资源地址链接功能,只需要填好对应的链接即可,如图所示