1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<?php //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' ) || class_exists( 'MB_Conditional_Logic' ) ) { return; }
require dirname( __FILE__ ) . '/inc/class-conditional-logic.php'; new MB_Conditional_Logic; } }
|