-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathacf-advanced_taxonomy_selector.php
executable file
·63 lines (53 loc) · 1.42 KB
/
acf-advanced_taxonomy_selector.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
/*
Plugin Name: Advanced Custom Fields: Advanced Taxonomy Selector
Plugin URI: https://github.com/danielpataki/ACF-Advanced-Taxonomy-Selector
Description: A field for Advanced Custom Fields which allows you to create a field where users can select terms or taxonommies flexibly.
Version: 3.0.0
Author: Daniel Pataki
Author URI: http://danielpataki.com
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
// Include Common Functions
include( 'functions.php' );
add_action('plugins_loaded', 'acfatf_load_textdomain');
/**
* Load Text Domain
*
* Loads the textdomain for translations
*
* @author Daniel Pataki
* @since 3.0.0
*
*/
function acfatf_load_textdomain() {
load_plugin_textdomain( 'acf-advanced-taxonomy-selector', false, dirname( plugin_basename(__FILE__) ) . '/lang/' );
}
add_action('acf/include_field_types', 'include_field_types_advanced_taxonomy_selector');
/**
* ACF 5 Field
*
* Loads the field for ACF 5
*
* @author Daniel Pataki
* @since 3.0.0
*
*/
function include_field_types_advanced_taxonomy_selector( $version ) {
include_once('acf-advanced_taxonomy_selector-v5.php');
}
add_action('acf/register_fields', 'register_fields_advanced_taxonomy_selector');
/**
* ACF 4 Field
*
* Loads the field for ACF 4
*
* @author Daniel Pataki
* @since 3.0.0
*
*/
function register_fields_advanced_taxonomy_selector() {
include_once('acf-advanced_taxonomy_selector-v4.php');
}
?>