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

"Filter: bricks/builder/term_name"

نام اصطلاح نمایش داده شده در رابط سازنده Bricks (به عنوان مثال در انتخابگرهای طبقه بندی) را فیلتر می‌کند.

پارامترها

  • $term_name (string): The formatted term name (e.g., Term Name (Taxonomy Label)).
  • $term_id (int|string): The ID of the term.
  • $taxonomy (string): The slug of the taxonomy.

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

add_filter( 'bricks/builder/term_name', function( $term_name, $term_id, $taxonomy ) {
    // Example: Add the term ID to the name
    return $term_name . ' [ID: ' . $term_id . ']';
}, 10, 3 );