Action: bricks/query_filters/index_user/before
Runs before a user is indexed for Query Filters. This action is triggered during the indexing process for a specific user.
Parameters
Section titled “Parameters”$user_id(int): The ID of the user being indexed.
Example usage
Section titled “Example usage”add_action( 'bricks/query_filters/index_user/before', function( $user_id ) { // Perform actions before indexing a user // error_log( "Starting indexing for user ID: $user_id" );
// Maybe register custom dynamic data providers if needed for indexing} );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.