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

"Filter: bricks/get_template_bundles"

لیست بسته‌های قالب نمایش داده شده در مدیر قالب Bricks را فیلتر می‌کند. بسته‌های قالب یک طبقه‌بندی سفارشی است که برای دسته‌بندی قالب‌ها استفاده می‌شود.

پارامترها

  • $bundles (array): Associative array of template bundles, where the key is the term slug and the value is the term name.

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

add_filter( 'bricks/get_template_bundles', function( $bundles ) {
    // Example: Rename a specific bundle
    if ( isset( $bundles['my-bundle'] ) ) {
        $bundles['my-bundle'] = 'My Renamed Bundle';
    }

    return $bundles;
} );