Filter: bricks/polylang/exclude_controls_from_translation
Filters Bricks control keys excluded from Polylang translation. Return the control keys that should not be translated for the current element/control context.
Parameters
Section titled “Parameters”$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.
Example usage
Section titled “Example usage”add_filter( 'bricks/polylang/exclude_controls_from_translation', function( $excluded_keys, $element, $control, $key ) { $excluded_keys[] = 'my_untranslated_control';
return $excluded_keys;}, 10, 4 );Was this helpful?
A quick vote and short notes help us improve these docs faster.
Leave a note for us
Please do not include passwords, license keys, or personal data. We store submitted notes to improve the docs.
Thanks for sharing feedback. We're using it to improve these docs.