| 开发者 | Finalmarco |
|---|---|
| 更新时间 | 2021年2月22日 16:17 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.0 及以上 |
| WordPress版本: | 5.6 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
Of course, you can put the following code inside your function.php page, it will redirect ot the login page `<?php function finalmarco_logout() { global $wp; if ( isset( $wp->query_vars['customer-logout'] ) ) { wp_redirect( str_replace( '&', '&', wp_logout_url( wc_get_page_permalink( 'myaccount' ) ) ) ); header("Refresh:0"); exit; } } add_action( 'template_redirect', 'finalmarco_logout' ); ?>`