Action: bricks/builder/switch_locale
Runs when Bricks switches the builder locale. Use it to synchronize integration state when the builder language changes.
Parameters
Section titled “Parameters”$locale(string): The locale Bricks is switching the builder to.
Example usage
Section titled “Example usage”add_action( 'bricks/builder/switch_locale', function( $locale ) { // Switch integration language context to match the builder.}, 10, 1 );Was this helpful?
A quick vote and short notes help us improve these docs faster.
Leave a note for us
Thanks for sharing feedback. We're using it to improve these docs.