Can I create a installation menu for a wordpress plugin? When I click on the activate button, a menu needs to appear to enter the default settings. Is there any hooks or is it impossible?
1条回答 默认 最新
- dongpang2029 2012-09-03 13:48关注
You could use http://codex.wordpress.org/Function_Reference/register_activation_hook to redirect to the settings page upon activation.
If you really need a 'wizard' and redirecting to the settings page is not good enough. Then on the 'init' hook you could check whether a setting 'my_plugin_wizard_complete' exists and if it doesn't then register your wizard as a wordpress admin page and redirect there instead. You would need to set the setting when the wizard is completed.
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
悬赏问题
- ¥35 平滑拟合曲线该如何生成
- ¥100 c语言,请帮蒟蒻写一个题的范例作参考
- ¥15 名为“Product”的列已属于此 DataTable
- ¥15 安卓adb backup备份应用数据失败
- ¥15 eclipse运行项目时遇到的问题
- ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
- ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
- ¥15 自己瞎改改,结果现在又运行不了了
- ¥15 链式存储应该如何解决
- ¥50 成都蓉城足球俱乐部小程序抢票