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

"Filter: bricks/builder/post_title"

عنوان پست نمایش داده شده در رابط سازنده Bricks (به عنوان مثال در نتایج جستجو، کرکره ها و لیست ها) را فیلتر می‌کند.

پارامترها

  • $title (string): The post title.
  • $post_id (int): The ID of the post.

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

add_filter( 'bricks/builder/post_title', function( $title, $post_id ) {
    // Example: Append the post ID to the title
    return $title . ' (ID: ' . $post_id . ')';
}, 10, 2 );