<?php

namespace Nelio_AB_Testing\Compat\Instabuilder2;

defined( 'ABSPATH' ) || exit;

use function add_action;

add_action(
	'plugins_loaded',
	function () {
		if ( ! defined( 'IB2_VERSION' ) ) {
			return;
		}
		add_action( 'nab_nab/page_preview_alternative', __NAMESPACE__ . '\load_alternative_content', 1, 2 );
	}
);
