Filter: bricks/woocommerce/ajax_render_post_id
Filters the post ID Bricks uses as context for WooCommerce AJAX rendering.
Parameters
Section titled “Parameters”$post_id(int): The post ID Bricks resolved for the WooCommerce page.$wc_page(string): The WooCommerce page context being rendered.
Example usage
Section titled “Example usage”add_filter( 'bricks/woocommerce/ajax_render_post_id', function( $post_id, $wc_page ) { return $post_id;}, 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.