| 开发者 | vectorilo |
|---|---|
| 更新时间 | 2026年10月17日 01:56 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
Add the "VisWapp form" block and paste the form key (vw_frm_…) from VisWapp → Web Forms → Share, or use [viswapp_form id="vw_frm_…"]. Set mode="popup" for a floating button instead. The form must be published in VisWapp; until then visitors see that it is not accepting responses.
The form only allows some websites. In VisWapp → Web Forms → Share → Where can it be embedded?, add your site's domain.
Yes, with the shortcode: [viswapp_login label="Sign up with WhatsApp" redirect="/my-account/"] Or link any button to /wp-json/viswapp/v1/login/start to use the hosted VisWapp login page.
By the viswapp_phone user meta (set on first login), then the WooCommerce billing phone. Developers can change this with the viswapp_login_find_user filter, and react to logins with the viswapp_login_success action: add_action( 'viswapp_login_success', function ( $user, $claims ) { // $claims: phone_number, name, whatsapp_opt_in, new_user, ... }, 10, 2 );
Check that the settings page says "The widget is live on your site", that your domain is in Allowed websites in VisWapp, and that you are not logged in with a role you chose to hide it from. Clear your caching plugin's cache after saving.
Yes. The widget loads in the browser, so cached pages show it. If you identify logged-in users, make sure pages for logged-in visitors are not cached (most caching plugins already skip them).
Yes, with the viswapp_widget_identity filter. Return null to skip identifying a user: add_filter( 'viswapp_widget_identity', function ( $identity, $user ) { $identity['phone'] = get_user_meta( $user->ID, 'mobile', true ); return $identity; }, 10, 2 ); Use the viswapp_widget_show filter to show or hide the widget on a request: add_filter( 'viswapp_widget_show', function ( $show ) { return $show && ! is_page( 'careers' ); } );
Yes. Add this to the button's link or a script on the page: Chat with us
Yes, as long as the cart and checkout pages are not cached (WooCommerce tells caching plugins not to cache them). Carts are sent from the server during the request that changed them, so a cached product page doesn't stop capture.
Its settings (including the Web forms tab), the saved Identity secret, the WhatsApp Login and abandoned-cart secrets, and saved cart links are removed from WordPress. Chats, contacts and carts stay in VisWapp.