-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathacf-column.php
32 lines (21 loc) · 858 Bytes
/
acf-column.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
<?php
/*
Plugin Name: Advanced Custom Fields: Column
Plugin URI: www.dreihochzwo.de
Description: Adds an Advanced Custom Field field to arrange ACF fields into columns. This plugin needs the installation/activation of Advanced Custom Fields V5.
Version: 1.0.0
Author: Thomas Meyer
Author URI: www.dreihochzwo.de
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
// 1. set text domain
// Reference: https://codex.wordpress.org/Function_Reference/load_plugin_textdomain
load_plugin_textdomain( 'acf-column', false, dirname( plugin_basename(__FILE__) ) . '/lang/' );
// 2. Include field type for ACF5
// $version = 5 and can be ignored until ACF6 exists
function include_field_types_column( $version ) {
include_once('acf-column-v5.php');
}
add_action('acf/include_field_types', 'include_field_types_column');
?>