"Filter: bricks/content/html_before_end"

این فیلتر که از نسخه 1.6 در دسترس است، به شما امکان می‌دهد قبل از بستن تگ main رشته های HTML را سفارشی یا درج کنید.

add_filter( 'bricks/content/html_before_end', function( $html_after_begin, $bricks_data, $attributes, $tag ) {

    if ( $tag !== 'main' ) {
      return $html_after_begin;
    }

    // Insert custom popup HTML
    $my_popup_html = '<div class="my_popup">This is my popup</div>';

    return $html_after_begin . $my_popup_html;
}, 10, 4 );