doudan5136 2019-02-27 04:06
浏览 93
已采纳

wordpress插件如何保存设置信息? [重复]

This question already has an answer here:

How does a WordPress plugin save settings information ?

For example, where does it keep the template information that we enter in WordPress panel ?

In a database or in define functions? What is the best way?

</div>
  • 写回答

1条回答 默认 最新

  • dongmacuo1193 2019-02-27 04:37
    关注

    The best way is that you can register, save and read the extra information using with wordpress Plugin settings with form.

    You have to follow the steps as mentioned in articles with birfe information.

    First Step, You can "add form to WordPress plugin page" in functions.php file as mentioned in article file. - Save WordPress plugin settings with form

    Second Step, you can register the Register WordPress plugin settings to database - Register WordPress plugin settings to database

    Third Step, you can implement to read WordPress plugin settings from database - Read WordPress plugin settings from database

    Hope it's useful !!

    Thanks!

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
编辑
预览

报告相同问题?

悬赏问题

  • ¥35 spaceclaim脚本
  • ¥15 MC9S12XS128单片机实验
  • ¥15 失败的github程序安装
  • ¥15 WSL上下载的joern在windows怎么用?
  • ¥15 jetson nano4GB
  • ¥15 电脑回复出厂设置,重装过程报错提示,求解决方案Windows 无法分析或处理无人参与应答文件 [C:\WINDOWS\Panther\unattend.xml,如何解决?
  • ¥15 进入lighttools中的UDOP编辑器的方法
  • ¥15 求Gen6d训练数据集
  • ¥20 liunx中winscp中可以登入ftp,但是不能登入sftp,如何解决
  • ¥15 lighttools的光学属性自定义的用法流程
手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部