Integrations > WordPress) in Settings > Fipeo. The plugin reads, from * its own server and only in the admin area or in a scheduled task (never while a visitor loads a page), the public configuration of the * school: which pieces are switched on and their public identifiers. It keeps that in an option, so pages are the same for every visitor * and any page cache keeps working. On the pages it prints plain HTML (a div, a link, an iframe) and loads Fipeo's small scripts from * fipeo.net, which create iframes. The plugin sets no cookie and stores nothing about visitors. * Another Fipeo server (tests): define( 'FIPEO_ORIGIN', 'https://test.fipeo.net' ); in wp-config.php. */ if ( ! defined( 'ABSPATH' ) ) { exit; } define( 'FIPEO_VERSION', '2.0.0' ); define( 'FIPEO_DIR', plugin_dir_path( __FILE__ ) ); define( 'FIPEO_URL', plugin_dir_url( __FILE__ ) ); require_once FIPEO_DIR . 'includes/config.php'; require_once FIPEO_DIR . 'includes/front.php'; require_once FIPEO_DIR . 'includes/blocks.php'; if ( is_admin() ) { require_once FIPEO_DIR . 'includes/admin.php'; } register_activation_hook( __FILE__, 'fipeo_activate' ); register_deactivation_hook( __FILE__, 'fipeo_deactivate' ); /** Schedule the twice-daily refresh of the configuration. */ function fipeo_activate() { if ( ! wp_next_scheduled( 'fipeo_refresh_config' ) ) { wp_schedule_event( time() + HOUR_IN_SECONDS, 'twicedaily', 'fipeo_refresh_config' ); } } function fipeo_deactivate() { wp_clear_scheduled_hook( 'fipeo_refresh_config' ); } add_action( 'fipeo_refresh_config', 'fipeo_refresh' );