book
鼠子Blog
「WordPress自定义媒体上传路径」
search
brightness_6
WordPress自定义媒体上传路径
鼠子
apps
WordPress
local_offer
functions
timer
2024-06-30
分享本文
· WordPress自定义媒体上传路径
QQ好友
QQ空间
新浪微博
Twitter(X)
Facebook
highlight_off
关闭
将下面的代码添加到当前主题functions.php文件中,就可以调出该选项: ```php if(get_option('upload_path')=='wp-content/uploads' || get_option('upload_path')==null) { update_option('upload_path',WP_CONTENT_DIR.'/uploads'); } ```
本文链接:
https://blog.miomoe.cn/WordPress/Custom-uploads.html
版权声明:
本站文章大部分始于原创,用于个人学习记录,可能对您有所帮助,仅供参考!
comment
暂无评论
所有评论
发表评论
万水千山总是情,评论一句行不行~
取消回复
account_circle
名称·Name
email
邮箱·E-Mail
link
主页链接·Link
提交评论
鼠子
ShuShuicu
鼠子的互联网笔记,记录一些有用的知识和
废话
。
search
分类归档
随机文章
home
首页
rss_feed
Reed
apps
文章分类
keyboard_arrow_up
随写
35
开发笔记
6
Web前端
5
WordPress
12
Typecho
11
服务器
0
网站导航
1
教程文档
2
软件工具
1
Games
1
GTA
3
MuseDash
0
年度总结
0
library_books
独立页面
keyboard_arrow_up
友情链接
关于博主
access_time
每月归档
keyboard_arrow_up
2024年9月
5
2024年8月
14
2024年7月
38
2024年6月
18
2024年5月
2
JSDMirror - 免费的全球 CDN
MioMoe主题上线!轻量化Typecho主题模板
罪恶都市优化补丁
MioBlog:最简洁的Typecho博客模板
准备写个视频插入短代码
add
cancel
code
keyboard_arrow_up
keyboard_arrow_down
search
brightness_medium