forked from marktimemedia/acf-term-and-taxonomy-chooser
-
Notifications
You must be signed in to change notification settings - Fork 1
/
acf-taxonomy-chooser.php
executable file
·48 lines (45 loc) · 1.82 KB
/
acf-taxonomy-chooser.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
<?php
/**
* ACF Term and Taxonomy Chooser
*
* @package ACF_Taxonomy_Chooser
* @version 1.0.0
* @author Marktime Media, modified by Controlled Chaos Design
* @link https://github.com/ControlledChaos/acf-term-and-taxonomy-chooser
* @license GPL-3.0+ http://www.gnu.org/licenses/gpl-3.0.txt
*
* Plugin Name: ACF Term and Taxonomy Chooser
* Plugin URI: https://github.com/ControlledChaos/acf-term-and-taxonomy-chooser
* Description: Choose from any taxonomy or term.
* Version: 1.0.0
* Author: Marktime Media, modified by Controlled Chaos Design
* Author URI: https://github.com/ControlledChaos
* License: GPL-3.0+
* License URI: https://www.gnu.org/licenses/gpl.txt
* Text Domain: acf-taxonomy-chooser
* Domain Path: /languages
* Tested up to: 5.2.3
*/
/**
* License & Warranty
*
* ACF Term and Taxonomy Chooser is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* any later version.
*
* ACF Term and Taxonomy Chooser is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with ACF Term and Taxonomy Chooser. If not, see {URI to Plugin License}.
*/
// Set text domain.
load_plugin_textdomain( 'acf-taxonomy-chooser', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
// Include field type for ACF5.
function include_field_types_taxonomy_chooser( $version ) {
include_once( 'class-taxonomy-chooser.php' );
}
add_action( 'acf/include_field_types', 'include_field_types_taxonomy_chooser' );