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

"Filter: bricks/get_builder_edit_link"

URL "ویرایش با Bricks" ایجاد شده برای یک پست را فیلتر می‌کند. این به شما امکان می‌دهد پارامترهای Queryی سفارشی را اضافه کنید یا ساختار پیوند را تغییر دهید.

پارامترها

  • $url (string): The "Edit with Bricks" URL.
  • $post_id (int): The ID of the post.

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

add_filter( 'bricks/get_builder_edit_link', function( $url, $post_id ) {
    // Example: Append a custom parameter to the builder URL
    return add_query_arg( 'my_param', 'value', $url );
}, 10, 2 );