ACF Table Field Pro Add-on Docs Last updated:

Filter core sanitize_html

ACFTableFieldPro.core.addFilter( 'core', 'sanitize_html', function( options, param ) { 
 
	// DOMPurify Options, @see: https://github.com/cure53/DOMPurify?tab=readme-ov-file#can-i-configure-dompurify 
 
	return options; 
} );

If you use the filter in an admin script, you have to use the event listener tableFieldProRegisterHooks. See Admin Script.

Parameters

    • param.id
    • (string)
    • Defaults: empty string
    • Options:
      Value Description
      caption_preview Indicates that the filter is used before previewing the table caption.
      caption_table_to_data Indicates that the filter is used before writing the caption input value to the table data.
      render_cell_content Indicates that the filter is used before a table cell content is displayed in the edit view.
      cell_content_to_textarea Indicates that the filter is used before a cell content is inserted into the textarea in Simple Text mode.
      cell_content_from_textarea Indicates that the filter is used before content from the textarea in Simple Text mode is further processed.
      cell_content_from_editor Indicates that the filter is used when table cell content is saved from the editor.
      cell_content_from_import Indicates that the filter is used before an imported value is processed.
      overlay_field_text_value Indicates that the filter is used before processing the value of an text input from the option modal.
      overlay_field_textarea_value Indicates that the filter is used before processing the value of an textarea from the option modal.
      overlay_field_button_value Indicates that the filter is used when displaying the value of an button in the option modal.
      overlay_field_button_text Indicates that the filter is used when displaying the text label of an button in the option modal.

Previous and Next Sources

Parent sources

Parent sources

On this page