VWO for more details. * Author: VWO * Version: 4.5 * visual-website-optimizer.php * Author URI: https://vwo.com/ * * @package VWO * @author VWO * @version 4.5 **/ /** * Generate Common Code * * @param integer $vwo_clicks integer. Defaults to 10. */ function get_vwo_clhf_script_common_code( $vwo_clicks = 10 ) { ob_start(); // @codingStandardsIgnoreStart ?> '; ?>

VWO

You need to have a VWO account in order to use this plugin. This plugin inserts the neccessary code into your WordPress site automatically without you having to touch anything. In order to use the plugin, you need to enter your VWO Account ID:

> > >
Your VWO Account ID
No. of Heatmap Clicks
Code (default: Asynchronous) /> Asynchronous    /> Synchronous  [Help]
Settings Timeout ms (default: 2000)
Library Timeout ms (default: 2500)
Use Existing jQuery />Yes
Skip Deferred Execution />Yes

Your Account ID (a number) can be found in Settings area (top-right) after you login into your VWO account.

'; } /** * Displays a warning message if VWO settings are not configured. * This function checks if the user is an admin and if the VWO ID option is set. If the user is not an admin or * the VWO ID option is not set, it displays a warning message. * * @throws Exception Description of exception. * @return void */ function vwo_clhf_warn_nosettings() { if ( ! is_admin() ) { return; } $clhf_option = get_option( 'vwo_id' ); if ( ! $clhf_option || $clhf_option < 1 ) { echo "

VWO is almost ready. You must enter your Account ID for it to work.

"; } } add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), 'vwo_clhf_add_plugin_page_settings_link' ); /** * Function to add Settings Links on Plugin page * * @param array $links Array of links. * @return array */ function vwo_clhf_add_plugin_page_settings_link( $links ) { $links[] = '' . __( 'Settings' ) . ''; return $links; } /** * Disables VWO in Divi Builder. * * @throws Exception Description of exception. * @return void */ function disable_vwo_in_divi_builder() { if ( has_action( 'wp_head', 'vwo_clhf_headercode' ) && function_exists( 'et_core_is_fb_enabled' ) && et_core_is_fb_enabled() ) { remove_action( 'wp_head', 'vwo_clhf_headercode', 1 ); } } add_action( 'wp_head', 'disable_vwo_in_divi_builder', 0 ); ?>