Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Icenberg SnippetsNew to Visual Studio Code? Get it now.
Icenberg Snippets

Icenberg Snippets

coderjerk

|
8 installs
| (0) | Free
Snippets for the Icenberg, the ACF and WordPress templating library
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Icenberg Snippets for VS Code

Snippets to make the WordPress ACF templating tool Icenberg even easier to use.

Features

Snippets are provided for the following common icenberg features:

ice:init

$ice = new Icenberg('master_class');

ice:el

$ice->the_element('field_name');

ice:get

$ice->get_element('field_name');

ice:field

$ice->field('field_name');

ice:val

$ice->value('field_name');

ice:only

$ice->field('field_name')->only(['sub_field_name'])->get();

ice:except

$ice->field('field_name')->except(['sub_field_name'])->get();

ice:enclose

$ice->enclose('class', [
    $ice->get_element($field_name),
]);

ice:wrap

$icenberg::wrap(
    [
        $icenberg->get_element('field_name'),
    ],
    $block,
    true
);

Requirements

To use Icenberg you'll need to be using

  • ACF Pro
  • Icenberg
  • WordPress

You can find out more about Icenberg here: https://github.com/maverick-international/Icenberg

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft