You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -24,6 +24,21 @@ WordPress.com compatibility is limited to Business tier users only. [How to add
24
24
25
25
No, only one form should exist per page, no matter the display type (widget, shortcode, or block).
26
26
27
+
## Access token Encryption
28
+
29
+
The plugin stores the OAuth access token in the WordPress database and encrypts it for security. To ensure encryption and decryption work properly, the plugin needs access to certain security constants that should remain unchanged.
30
+
31
+
By default, the plugin uses the `LOGGED_IN_KEY` and `LOGGED_IN_SALT` constants from the wp-config.php file. These usually work well. However, if another plugin or mechanism regularly updates these constants, the plugin will have trouble decrypting the access token and you’ll need to reconnect your Mailchimp account.
32
+
33
+
To prevent such issues, it is recommended to define two additional constants in your wp-config.php file: `MAILCHIMP_SF_ENCRYPTION_KEY` and `MAILCHIMP_SF_ENCRYPTION_SALT`. These constants should consist of a combination of characters, preferably at least 32 characters long. Once set, these values should not be changed. For strong values, you can copy some of the values from https://api.wordpress.org/secret-key/1.1/salt/ and use them. You should have additional code like the following in your wp-config.php file:
34
+
35
+
```php
36
+
define( 'MAILCHIMP_SF_ENCRYPTION_KEY', 'put your unique phrase here' );
37
+
define( 'MAILCHIMP_SF_ENCRYPTION_SALT', 'put your unique phrase here' );
38
+
```
39
+
40
+
If you add these constants after the plugin is already configured, the plugin will use the new constants, which may cause issues. To avoid this, you can copy the values from `LOGGED_IN_KEY` and `LOGGED_IN_SALT` to `MAILCHIMP_SF_ENCRYPTION_KEY` and `MAILCHIMP_SF_ENCRYPTION_SALT`. If you prefer new values, you will need to reconnect your Mailchimp account.
41
+
27
42
## Installation
28
43
29
44
This section describes how to install the plugin and get started using it.
@@ -43,7 +58,7 @@ This section describes how to install the plugin and get started using it.
43
58
44
59
If you have a custom coded sidebar or bells and whistles that prevent enabling widgets through the WordPress GUI, complete these steps instead.
45
60
46
-
WordPress v2.8 or higher:
61
+
WordPress v2.8 or higher:
47
62
` [mailchimpsf_form] `
48
63
49
64
If you are adding it inside a php code block, pop this in:
0 commit comments