Changeset 1454762
- Timestamp:
- 07/14/2016 02:37:18 PM (10 years ago)
- Location:
- acf-tablepress/trunk
- Files:
-
- 2 edited
-
acf-tablepress.php (modified) (3 diffs)
-
readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
acf-tablepress/trunk/acf-tablepress.php
r1303016 r1454762 3 3 Plugin Name: Advanced Custom Fields: TablePress 4 4 Description: ACF field to select one or many TablePress tables 5 Version: 1.3. 15 Version: 1.3.2 6 6 Author: Tyler Digital 7 7 Author URI: http://tylerdigital.com … … 23 23 along with this program; if not, write to the Free Software 24 24 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 25 */ 25 26 26 */ 27 if( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly 27 28 28 29 function acftp_init() { … … 65 66 } 66 67 } 67 } else {68 /* For ACF 5 */69 // $version = 5 and can be ignored until ACF6 exists70 function include_field_types_tablepress( $version ) {71 include_once 'tablepress-v5.php';72 }73 74 add_action( 'acf/include_field_types', 'include_field_types_tablepress' );75 76 /* For ACF 4 */77 function register_fields_tablepress() {78 include_once('tablepress-v4.php');79 }80 81 add_action('acf/register_fields', 'register_fields_tablepress');82 83 add_action( 'init', 'acftp_load_plugin_textdomain' );84 function acftp_load_plugin_textdomain() {85 $domain = 'acf-tablepress';86 $locale = apply_filters( 'plugin_locale', get_locale(), $domain );87 load_textdomain( $domain, WP_LANG_DIR . '/' .$domain. '/' . $domain . '-' . $locale . '.mo' );88 load_plugin_textdomain( $domain, FALSE, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );89 }90 68 } 91 69 } 70 71 /* For ACF 5 */ 72 // $version = 5 and can be ignored until ACF6 exists 73 function include_field_types_tablepress( $version ) { 74 include_once 'tablepress-v5.php'; 75 } 76 add_action( 'acf/include_field_types', 'include_field_types_tablepress' ); 77 78 /* For ACF 4 */ 79 function register_fields_tablepress() { 80 include_once('tablepress-v4.php'); 81 } 82 add_action('acf/register_fields', 'register_fields_tablepress'); 83 84 add_action( 'init', 'acftp_load_plugin_textdomain' ); 85 function acftp_load_plugin_textdomain() { 86 $domain = 'acf-tablepress'; 87 $locale = apply_filters( 'plugin_locale', get_locale(), $domain ); 88 load_textdomain( $domain, WP_LANG_DIR . '/' .$domain. '/' . $domain . '-' . $locale . '.mo' ); 89 load_plugin_textdomain( $domain, FALSE, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); 90 } 92 91 } 93 92 -
acf-tablepress/trunk/readme.txt
r1303016 r1454762 3 3 Tags: advanced custom fields, acf, tablepress, tables, table, select table, embed table 4 4 Requires at least: 4.0 5 Tested up to: 4. 46 Stable tag: 1.3. 15 Tested up to: 4.5.2 6 Stable tag: 1.3.2 7 7 8 8 ACF field type to select a TablePress table … … 22 22 **Follow this plugin on [GitHub](https://github.com/tylerdigital/acf-tablepress)** 23 23 24 25 24 == Installation == 26 25 1. Copy the `acf-tablepress` folder into your plugins folder … … 30 29 This field can return the table ID for the table selected, or the full HTML of the table (the same output as the rendered shortcode). 31 30 32 When returning the table ID, either of the following code snippets will output your table .31 When returning the table ID, either of the following code snippets will output your table (replacing 'your_table_here' with the field name you defined in your ACF Field Group settings). 33 32 ` 34 33 <?php … … 55 54 ` 56 55 56 For a more detailed explanation, see our article, [Setting up an ACF field for TablePress](http://tylerdigital.com/document/setting-up-an-acf-field-for-tablepress/). 57 57 58 == Changelog == 59 60 = 1.3.2 = 61 * Fix: Fixed bug that prevented non-administrator users from inserting tables. 62 * Fix: Fixed bug that failed to display the table while logged out and using "HTML Output" 58 63 59 64 = 1.3.1 =
Note: See TracChangeset
for help on using the changeset viewer.