Action: bricks/render_popup_content/start
Runs at the start of the AJAX popup content rendering process (load_popup_content endpoint). This action allows you to execute custom logic before the popup content is generated and returned.
Parameters
Section titled “Parameters”$request_data(array): The request data parameters (e.g., postId, popupId, etc.).
Example usage
Section titled “Example usage”add_action( 'bricks/render_popup_content/start', function( $request_data ) { // Access request data // $post_id = $request_data['postId'] ?? 0;
// Example: Switch language for multilingual plugins (Polylang/WPML integration uses this) // if ( isset( $request_data['lang'] ) ) { // // Switch language logic // }} );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.