<?php/*Plugin Name: Advanced Custom Fields: Table FieldPlugin URI: http://www.johannheyne.de/Description: This free Add-on adds a table field type for the Advanced Custom Fields pluginVersion: 1.1.15Author: Johann HeyneAuthor URI: http://www.johannheyne.de/License: GPLv2 or laterLicense URI: http://www.gnu.org/licenses/gpl-2.0.html*/// 1. set text domain// Reference: https://codex.wordpress.org/Function_Reference/load_plugin_textdomainload_plugin_textdomain('acf-table',false,dirname(plugin_basename(__FILE__)).'/lang/');// 2. Include field type for ACF5// $version = 5 and can be ignored until ACF6 existsfunctioninclude_field_types_table($version){include_once('acf-table-v5.php');}add_action('acf/include_field_types','include_field_types_table');// 3. Include field type for ACF4functionregister_fields_table(){include_once('acf-table-v4.php');}add_action('acf/register_fields','register_fields_table');