<?php

namespace Wptopr\WP\SEO\Integrations\Third_Party;

use Wptopr\WP\SEO\Conditionals\Front_End_Conditional;
use Wptopr\WP\SEO\Conditionals\Jetpack_Conditional;
use Wptopr\WP\SEO\Conditionals\Open_Graph_Conditional;
use Wptopr\WP\SEO\Integrations\Integration_Interface;

/**
 * Jetpack integration.
 */
class Jetpack implements Integration_Interface {

	/**
	 * Returns the conditionals based in which this loadable should be active.
	 *
	 * @return array
	 */
	public static function get_conditionals() {
		return [ Front_End_Conditional::class, Jetpack_Conditional::class, Open_Graph_Conditional::class ];
	}

	/**
	 * Initializes the integration.
	 *
	 * This is the place to register hooks and filters.
	 *
	 * @return void
	 */
	public function register_hooks() {
		\add_filter( 'jetpack_enable_open_graph', '__return_false' );
	}
}
