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

"Filter: bricks/export_template_args"

آرگومان‌های URL مورد استفاده برای پیوند "Export Template" در جدول لیست قالب های Bricks را فیلتر می‌کند.

پارامترها

  • $args (array): Array of query arguments for the export URL (e.g., action, nonce, templateId).
  • $post_id (int): The ID of the template being exported.

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

add_filter( 'bricks/export_template_args', function( $args, $post_id ) {
    // Example: Add a custom parameter to the export URL
    $args['my_param'] = 'value';

    return $args;
}, 10, 2 );