<?php
/**
 * Plugin Name: Meta Box Conditional Logic
 * Plugin URI:  https://metabox.io/plugins/meta-box-conditional-logic/
 * Description: Control the visibility of meta boxes and fields or even HTML elements with ease.
 * Version:     1.6.14
 * Author:      MetaBox.io
 * Author URI:  https://metabox.io
 * License:     GPL2+
 *
 * @package Meta Box
 * @subpackage Meta Box Conditional Logic
 */

// Prevent loading this file directly.
defined( 'ABSPATH' ) || exit;

if ( ! function_exists( 'mb_conditional_logic_load' ) ) {
	/**
	 * Hook to 'init' with priority 5 to make sure all actions are registered before Meta Box 4.9.0 runs
	 */
	add_action( 'init', 'mb_conditional_logic_load', 5 );

	/**
	 * Load plugin files after Meta Box is loaded
	 */
	function mb_conditional_logic_load() {
		if ( ! defined( 'RWMB_VER' ) ) {
			return;
		}

		require __DIR__ . '/conditional-logic.php';
		new MB_Conditional_Logic;
	}
}
