forked from andrejpavlovic/acf-conditional-logic-advanced
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
23 lines (20 loc) · 805 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
/*
Plugin Name: ACF Conditional Logic Advanced
Plugin URI: https://github.com/andrejpavlovic/acf-conditional-logic-advanced
Description: Adds an advanced conditional logic field setting to ACF that can show/hide individual fields based on post template, format, and/or category.
Version: 1.1.3
Author: Andrej Pavlovic
Author URI: https://www.pokret.org/
License: GPL2
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
if( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
require 'lib/AcfConditionalLogicAdvanced.php';
$acfCondLogAdv = new AcfConditionalLogicAdvanced([
// urls
'basename' => plugin_basename( __FILE__ ),
'path' => plugin_dir_path( __FILE__ ),
'url' => plugin_dir_url( __FILE__ ),
]);
$acfCondLogAdv->initialize();