This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

HeadlineEnvy – headline testing with Optimizely


HeadlineEnvy adds the ability to A/B test the titles of your content through integration with Optimizely.

Features include:

  • Unrestricted headline variations. When creating the test for a headline, you can add as many or as few as you wish.
  • Test headlines anywhere. Headline variations are applied to any place that your titles are output regardless of whether they appear on a post page, in the navigation, etc.
  • Experiment results. Revisit posts in the dashboard to check the status of headline statistical significance while your headline experiments are executed.
  • Automatic headline selection. Optionally choose to let HeadlineEnvy and Optimizely detect statistically significant winners and automatically update the post with the winning title.

To contribute, report issues, or make feature requests use Github.

Visit for official support of this plugin.


  • Add an alternate title to begin an experiment.
  • Multiple headlines added to experiment.
  • Winning headline!


  1. Install HeadlineEnvy either via the plugin directory, or by uploading the files to your server.
  2. After activating HeadlineEnvy, head over to the HeadlineEnvy settings page and enter your Optimizely API key.
  3. Once your Optimizely API key has been entered, select the Optimizely project that you wish HeadlineEnvy to use for creating its experiments.
  4. Select the post types you wish to allow for headline testing.
  5. Visit any post edit page and you will see a new button prompting you to add additional headlines! Enter a few and hit Save/Update/Publish.
  6. That’s it!

HeadlineEnvy works by attaching to the the_title filter hook. If your theme or plugin uses a method of getting post titles that does not trigger that hook HeadlineEnvy will be unable to A/B test those cases.


There are no reviews for this plugin.

Contributors & Developers

“HeadlineEnvy – headline testing with Optimizely” is open source software. The following people have contributed to this plugin.




  • Lots of improvements and code tweaks thanks to @colegeissinger:
    • Any translated strings should be escaped with esc_html__() or esc_html_e()
    • Checking user has right privileges
    • Cleaning up of redundant sanitization functionality into a central method
    • Added a “Deep Sanitize” method to ensure no matter the type of data, everything is cleaned up
    • Updates to some JS to avoid XSS instances through DOM manipulation
    • Caching jQuery selectors like $( document )
    • Sanitizing late, escaping early


  • Fixed a few PHP warnings
  • Normalized naming conventions to match Optimizely
  • Normalized number values so they match Optimizely (i.e. 32.5% vs. 0.3247859996)
  • Fixed a reference to the conversion value
  • When deleting title variations confirmation now uses the variation ‘title’ instead of the variation id #
  • Fixed an issue where some default options were lost of user tried to use an invalid API Key
  • Return empty array for $primary_results when there are none yet


  • Initial release