Skip to content

Filter: bricks/wpml/exclude_controls_from_translation

Filters Bricks control keys excluded from WPML translation. Return the control keys that should not be translated for the current element/control context.

  • $excluded_keys (array): Control keys excluded from translation.
  • $element (array): The Bricks element data.
  • $control (array): The control definition.
  • $key (string): The current control key or repeater field key.
add_filter( 'bricks/wpml/exclude_controls_from_translation', function( $excluded_keys, $element, $control, $key ) {
$excluded_keys[] = 'my_untranslated_control';
return $excluded_keys;
}, 10, 4 );