پرش به محتویات

"Action: bricks/query_filters/index_post/before"

پیش از ایندکس شدن یک نوشته برای Query Filters اجرا می‌شود. این action در فرایند ایندکس برای نوشته مشخص trigger می‌شود.

پارامترها

  • $post_id (int): The ID of the post being indexed.

نمونه استفاده

add_action( 'bricks/query_filters/index_post/before', function( $post_id ) {
    // Perform actions before indexing a post, e.g., logging or checking conditions
    // error_log( "Starting indexing for post ID: $post_id" );

    // Maybe register custom dynamic data providers if needed for indexing
} );