{"id":370947,"date":"2026-09-21T05:36:48","date_gmt":"2026-09-21T05:36:48","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/preta\/"},"modified":"2026-09-21T05:36:25","modified_gmt":"2026-09-21T05:36:25","slug":"preta","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/preta\/","author":23568366,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"3.2.1","stable_tag":"3.2.1","tested":"7.1.1","requires":"5.5","requires_php":"7.4","requires_plugins":null,"header_name":"Preta","header_author":"Preta Systems","header_description":"Connects WordPress to Preta, the personalization and targeting platform. Securely sends the logged-in user's chosen attributes (such as plan or role) to Preta as a signed context token, and loads the Preta loader so campaigns can personalize and target on-page elements for each visitor.","assets_banners_color":"","last_updated":"2026-09-21 05:36:25","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/pretasystems.com\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":26,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"3.2.1":{"tag":"3.2.1","author":"pretasystems","date":"2026-09-21 05:36:25","revision":3704883}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3704894,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3704894,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["3.2.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3704882,"resolution":"1","location":"assets","locale":"","width":1402,"height":1122},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3704882,"resolution":"2","location":"assets","locale":"","width":1402,"height":1122},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3704882,"resolution":"3","location":"assets","locale":"","width":1116,"height":922},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3704882,"resolution":"4","location":"assets","locale":"","width":1156,"height":896},"screenshot-5.png":{"filename":"screenshot-5.png","revision":3704882,"resolution":"5","location":"assets","locale":"","width":1919,"height":775}},"screenshots":{"1":"Preta settings showing secure signing key configuration and public key.","2":"WordPress and ACF attributes selected for the signed user context.","3":"Test token showing selected attributes and generated signed user context.","4":"Preta campaign Logic Builder targeting a WordPress user attribute.","5":"Live WordPress page showing personalized content for a targeted user role."}},"plugin_section":[],"plugin_tags":[208627,187,10685,10684],"plugin_category":[52],"plugin_contributors":[281780],"plugin_business_model":[],"class_list":["post-370947","plugin","type-plugin","status-publish","hentry","plugin_tags-experimentation","plugin_tags-optimization","plugin_tags-personalization","plugin_tags-targeting","plugin_category-performance","plugin_contributors-pretasystems","plugin_committers-pretasystems"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/preta\/assets\/icon-128x128.png?rev=3704894","icon_2x":"https:\/\/ps.w.org\/preta\/assets\/icon-256x256.png?rev=3704894","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/preta\/assets\/screenshot-1.png?rev=3704882","caption":"Preta settings showing secure signing key configuration and public key."},{"src":"https:\/\/ps.w.org\/preta\/assets\/screenshot-2.png?rev=3704882","caption":"WordPress and ACF attributes selected for the signed user context."},{"src":"https:\/\/ps.w.org\/preta\/assets\/screenshot-3.png?rev=3704882","caption":"Test token showing selected attributes and generated signed user context."},{"src":"https:\/\/ps.w.org\/preta\/assets\/screenshot-4.png?rev=3704882","caption":"Preta campaign Logic Builder targeting a WordPress user attribute."},{"src":"https:\/\/ps.w.org\/preta\/assets\/screenshot-5.png?rev=3704882","caption":"Live WordPress page showing personalized content for a targeted user role."}],"raw_content":"<!--section=description-->\n<p>Preta connects your WordPress site to the Preta personalization and targeting platform.<\/p>\n\n<p>The plugin securely sends selected attributes from the logged-in WordPress user to Preta as a signed context token. Preta can then use those attributes to evaluate campaigns and personalize or target on-page elements for each visitor.<\/p>\n\n<p>Examples of targetable attributes include:<\/p>\n\n<ul>\n<li>WordPress role<\/li>\n<li>Signup month<\/li>\n<li>Locale<\/li>\n<li>Selected ACF user fields<\/li>\n<li>Selected safe user meta fields<\/li>\n<\/ul>\n\n<p>The plugin does not require clients to manually create or paste private signing keys. Preta generates a 2048-bit RSA signing key automatically and stores it, authenticated-encrypted, in the WordPress database. Administrators who prefer to manage their own key can instead configure PRETA_PRIVATE_KEY or PRETA_PRIVATE_KEY_PATH in wp-config.php, which the plugin only ever reads.<\/p>\n\n<p>The private signing key is never sent to Preta.<\/p>\n\n<h3>Configuration<\/h3>\n\n<p>After activation, open:<\/p>\n\n<p>Preta &gt; Settings<\/p>\n\n<p>The settings page allows administrators to:<\/p>\n\n<ul>\n<li>Configure the signing key.<\/li>\n<li>View the public key.<\/li>\n<li>Review key storage and verification status.<\/li>\n<li>Discover available user attributes.<\/li>\n<li>Select which attributes are sent to Preta.<\/li>\n<li>Test the generated user context token.<\/li>\n<li>Configure debug logging for troubleshooting.<\/li>\n<\/ul>\n\n<p>Only users with the required WordPress administrator capability can access the plugin settings.<\/p>\n\n<h3>Preta Account and Setup<\/h3>\n\n<p>The plugin connects to the Preta service.<\/p>\n\n<p>A Preta account is required to configure campaigns and targeting.<\/p>\n\n<p>After installing the plugin:<\/p>\n\n<ol>\n<li>Generate the WordPress signing key.<\/li>\n<li>Copy the public key from the plugin settings.<\/li>\n<li>Add the public key to your Preta project.<\/li>\n<li>Verify the WordPress integration.<\/li>\n<li>Review the discovered attributes.<\/li>\n<li>Select and save the attributes that should be available for targeting.<\/li>\n<li>Create and configure campaigns in Preta.<\/li>\n<\/ol>\n\n<p>For more information about Preta, visit:<\/p>\n\n<p>https:\/\/pretasystems.com\/<\/p>\n\n<h3>Attribute Discovery<\/h3>\n\n<p>Preta can discover supported attributes from the WordPress installation.<\/p>\n\n<p>Supported sources include:<\/p>\n\n<ul>\n<li>WordPress core user information.<\/li>\n<li>Active Advanced Custom Fields (ACF) user fields.<\/li>\n<li>Safe user meta values.<\/li>\n<\/ul>\n\n<p>The discovery process identifies attributes that can safely be represented as scalar targeting values.<\/p>\n\n<p>Potentially sensitive or unsuitable values are excluded from discovery and transmission.<\/p>\n\n<p>Discovered attributes are not automatically added to the signed context after discovery. Administrators must review and save the attributes they want the plugin to send.<\/p>\n\n<p>New attributes discovered later can be reviewed and added without automatically changing the existing saved configuration.<\/p>\n\n<h3>Security and Privacy<\/h3>\n\n<p>The plugin uses RS256 signed context tokens to send selected user attributes to Preta.<\/p>\n\n<p>The private signing key is generated automatically and stored authenticated-encrypted (AES-256-GCM, with a key derived from this WordPress installation's own secrets) in a plugin-owned database option. It is never written to a file, never stored in plaintext, and never sent to Preta. Administrators may instead configure PRETA_PRIVATE_KEY or PRETA_PRIVATE_KEY_PATH in wp-config.php to manage the key themselves; the plugin only ever reads these.<\/p>\n\n<p>The public key can be registered with Preta to verify signatures.<\/p>\n\n<p>The plugin limits attribute values to supported scalar types and excludes sensitive or unsuitable fields from discovery and transmission.<\/p>\n\n<p>The plugin does not intentionally send passwords, session tokens, or other sensitive authentication data to Preta.<\/p>\n\n<p>Only selected attributes are included in the signed user context.<\/p>\n\n<p>Administrators should review the attributes selected for transmission and ensure that their site's privacy and data-processing requirements are satisfied.<\/p>\n\n<h3>External Services<\/h3>\n\n<p>This plugin connects to the Preta service operated by Preta Systems.<\/p>\n\n<p>The service is used to:<\/p>\n\n<ul>\n<li>Verify signed user context.<\/li>\n<li>Evaluate targeting rules.<\/li>\n<li>Determine which configured campaign experiences apply to a visitor.<\/li>\n<li>Deliver the Preta loader used for campaign evaluation and personalization.<\/li>\n<\/ul>\n\n<p>When the plugin is configured and active, selected user attributes may be transmitted from the WordPress site to Preta in a signed context token.<\/p>\n\n<p>Service:<\/p>\n\n<p>https:\/\/pretasystems.com\/<\/p>\n\n<p>Privacy Policy:<\/p>\n\n<p>https:\/\/pretasystems.com\/privacy\/<\/p>\n\n<p>Please review the Preta service privacy policy before enabling the integration.<\/p>\n\n<h3>License<\/h3>\n\n<p>This plugin is licensed under the GNU General Public License version 2 or later.<\/p>\n\n<p>https:\/\/www.gnu.org\/licenses\/gpl-2.0.html<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install and activate the Preta plugin.<\/li>\n<li>Open the Preta settings page in WordPress administration.<\/li>\n<li>Generate or configure the signing key when prompted.<\/li>\n<li>Copy the displayed public key.<\/li>\n<li>Register the public key in your Preta account.<\/li>\n<li>Discover the available WordPress, ACF, and user-meta attributes.<\/li>\n<li>Select the attributes you want Preta to receive.<\/li>\n<li>Save the selected attributes.<\/li>\n<li>Configure your targeting campaigns in Preta.<\/li>\n<\/ol>\n\n<p>After configuration, the plugin loads the Preta loader on the site and provides signed context for logged-in users.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt id=\"does%20the%20plugin%20send%20the%20private%20signing%20key%20to%20preta%3F\"><h3>Does the plugin send the private signing key to Preta?<\/h3><\/dt>\n<dd><p>No. The private signing key is generated and kept on the WordPress site (encrypted in the database, or in a file you manage yourself via PRETA_PRIVATE_KEY_PATH). Preta receives only the public key, for signature verification.<\/p><\/dd>\n<dt id=\"can%20i%20choose%20which%20user%20attributes%20are%20sent%3F\"><h3>Can I choose which user attributes are sent?<\/h3><\/dt>\n<dd><p>Yes. The plugin provides attribute discovery and allows administrators to select which supported attributes are included in the signed context.<\/p><\/dd>\n<dt id=\"does%20the%20plugin%20work%20with%20acf%3F\"><h3>Does the plugin work with ACF?<\/h3><\/dt>\n<dd><p>Yes. When Advanced Custom Fields is active, supported ACF user fields can be discovered and selected.<\/p><\/dd>\n<dt id=\"are%20all%20user%20meta%20fields%20automatically%20sent%3F\"><h3>Are all user meta fields automatically sent?<\/h3><\/dt>\n<dd><p>No. User meta values are filtered and only suitable attributes are made available for selection.<\/p><\/dd>\n<dt id=\"what%20happens%20when%20a%20user%20logs%20out%3F\"><h3>What happens when a user logs out?<\/h3><\/dt>\n<dd><p>The logged-in user's signed context is removed and Preta can evaluate the visitor without that authenticated user context.<\/p><\/dd>\n<dt id=\"does%20the%20plugin%20require%20a%20preta%20account%3F\"><h3>Does the plugin require a Preta account?<\/h3><\/dt>\n<dd><p>Yes. A Preta account is required to configure targeting campaigns and use the Preta service.<\/p><\/dd>\n<dt id=\"can%20i%20disable%20debug%20logging%3F\"><h3>Can I disable debug logging?<\/h3><\/dt>\n<dd><p>Yes. Debug logging can be configured from the Preta settings page.<\/p><\/dd>\n<dt id=\"what%20happens%20if%20i%20delete%20the%20plugin%3F\"><h3>What happens if I delete the plugin?<\/h3><\/dt>\n<dd><p>Deleting the plugin is permanent. It removes all Preta data, including the automatically-generated private signing key and the plugin settings. This cannot be undone and the private key cannot be recovered. After deletion you would need to reinstall, generate a new signing key, and register its new public key in Preta. A key you manage yourself via PRETA_PRIVATE_KEY_PATH is never touched. Deactivating the plugin (instead of deleting it) is non-destructive and keeps your key and settings.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>3.2.1<\/h4>\n\n<ul>\n<li>Changed automatically-generated signing keys to be stored authenticated-encrypted in the WordPress database instead of the filesystem.<\/li>\n<li>Removed the filesystem-based key storage used on some restrictive hosts in earlier versions.<\/li>\n<li>Fixed all inline scripts and styles to use the WordPress script\/style APIs.<\/li>\n<li>Updated diagnostics for the new key-storage architecture.<\/li>\n<\/ul>\n\n<h4>3.2.0<\/h4>\n\n<ul>\n<li>Added automatic user attribute discovery.<\/li>\n<li>Added support for discovering supported WordPress, ACF, and user-meta attributes.<\/li>\n<li>Added secure signing-key fallback storage for supported hosting environments.<\/li>\n<li>Added protected token refresh for logged-in users.<\/li>\n<li>Added security validation for user attributes.<\/li>\n<li>Improved administrator-only settings access.<\/li>\n<li>Improved key storage verification and security checks.<\/li>\n<li>Improved WordPress hosting compatibility.<\/li>\n<li>Added integration and security regression coverage.<\/li>\n<\/ul>","raw_excerpt":"Connects WordPress to Preta, a personalization and targeting platform, using signed user context and on-page campaigns.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/370947","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=370947"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/pretasystems"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=370947"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=370947"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=370947"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=370947"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=370947"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=370947"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}