php - 将弹出窗口更改为重定向
问题描述
我有一个 wordpress 网站并添加数字插件供客户通过电话登录,在我的 wordpress 网站主题中有一个通过电子邮件的模式弹出注册表单。
这是用于调用弹出窗口的代码:
<?php if(negarshop_option('header_res_user') == "true" and function_exists('WC')):
$account_link = wc_get_page_permalink( 'myaccount' );
$current_user = wp_get_current_user();
?>
<a href="<?php echo $account_link; ?>"<?php if (!$current_user->exists()) { ?> data-toggle="modal" data-target="#login-popup-modal"<?php }?> class="rh-item"><i class="fal fa-user"></i></a>
<?php endif; ?>
我不想打开一个模式弹出窗口,而是重定向到 mysite.com/my-account/ 或使用数字模式短代码 [dm-modal] 而不是主题默认弹出窗口。
有人可以帮我更改源代码吗?
解决方案
推荐阅读
- python-3.x - ImportError:找不到库“GLU”
- angular - 从 Ionic 2 中的 Provider 调用页面函数
- c# - 迭代 JObject 键
- log4j - 日志语句在日志文件中重复
- javascript - 使用 jquery 选择选项
- objective-c - ios11 和 Xcode 9 上的应用程序崩溃:同时添加 [self addChildViewController:]
- react-native - 我可以使用 React Native 完全不使用 Expo(云服务)吗
- c++ - C ++中的最大子序列
- angular - MathJax 在 Angular 6 的不同组件中显示普通文本
- python - 使用 python 访问 ECMWF 数据库时出错