Skip to content
Get Bricks

Action: bricks/query_filters/index_user/before

Action: bricks/query_filters/index_user/before

Section titled “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.

  • $user_id (int): The ID of the user being indexed.
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
} );