ACF Table Field Pro Add-on Docs Last updated:

Parent sources

On this page

Since version: v1.8.0

Release Candidate 1.8.0-RC1

This page documents version 1.8.0, which is available as Release Candidate 1.8.0-RC1 for manual installation. The current public version is 1.7.6, automatic plugin updates still deliver that version.

Download the Release Candidate from your account (Download the plugin) and install it manually (Install the plugin). Details may still change until the final release.

Filter acf_tablefield/formatting/enqueue_style

New since version 1.8.0

This filter is new.

This filter decides whether the plugin loads its stylesheet formatting.css on the website. The stylesheet is only loaded when a table that is output has formatted cells. Return false to turn it off and style the formatting yourself, see Cell formatting. The attribute data-acftf-format stays in the output. The filter does not apply to the WordPress admin and the block editor, where the stylesheet is always loaded.

The plugin adds some CSS that is generated for the table output to the same stylesheet: the rules of the font sizes that were added or changed with the filter acf_tablefield/formatting/font_sizes, and the rule of the no-wrap min width. This CSS goes with the stylesheet: when the filter returns false, it is not output either. Your theme then has to style the tokens fz-<key> of these font sizes and, for a min width, the container .acftf-table-container itself. The container element of the min width is still output.

Parameters

add_filter( 'acf_tablefield/formatting/enqueue_style', '__return_false' );
    • $enqueue
    • (boolean)
    • Whether to load the stylesheet. Default true.

Previous and Next Sources

Parent sources