Filter: bricks/polylang/builder_ajax_params
Filters the Polylang AJAX parameters injected into builder media requests. Use it to add or adjust language-aware parameters for the media library in the builder.
Parameters
Section titled “Parameters”$params(array): Parameters added to media AJAX requests.$post_id(int): The current builder post ID.
Example usage
Section titled “Example usage”add_filter( 'bricks/polylang/builder_ajax_params', function( $params, $post_id ) { $params['lang'] = pll_current_language();
return $params;}, 10, 2 );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.