Plugin Directory

Changeset 3409363


Ignore:
Timestamp:
12/03/2025 11:14:45 AM (4 months ago)
Author:
Jonua
Message:

Improves readme of tag 1.3.32
Tests code example with language

File:
1 edited

Legend:

Unmodified
Added
Removed
  • advanced-custom-fields-table-field/tags/1.3.32/readme.txt

    r3409337 r3409363  
    33Tags: acf, table, scf, advanced custom fields, secure custom fields
    44Requires at least: 5.3
    5 Tested up to: 6.8
     5Tested up to: 6.9
    66Stable tag: 1.3.32
    77Requires PHP: 7.4
     
    467467
    468468Since version 1.3.32, you can configure the UI sanitizing options.
    469 Ensure you create a dedicated admin script for configuring the table field plugin in your theme and enqueue it correctly.
    470 This is required so that the hook can be registered in the plugin after the plugin initialization and before the plugin script functionalities are executed.
     469
     470Ensure you create a dedicated admin script for configuring the table field plugin in your theme and enqueue it correctly. This is required so that the hook can be registered in the plugin after the plugin initialization and before the plugin script functionalities are executed.
    471471
    472472Create a file in your theme at the path `/js/table-field-config.js`.
    473473
    474 Than enqueue that script in the functions.php file with the following action.
    475 
    476 `
     474Than enqueue that script in your themes `functions.php` file with the following action.
     475
     476```php
    477477add_action( 'admin_enqueue_scripts', function() {
    478478
     
    484484        true // Required to be correctly placed in the script queue
    485485    );
    486 });`
     486});```
    487487
    488488The sanitization of the table fields UI is handled by DOMPurify.
    489 Use the following table field hook to modify the DOMPurify options.
     489Use the following table field hook in your table field config script to modify the DOMPurify options.
    490490
    491491`ACFTableField.addFilter( 'core', 'sanitize_html', function( options ) {
Note: See TracChangeset for help on using the changeset viewer.