Make WordPress Core

Changes between Initial Version and Version 3 of Ticket #59424


Ignore:
Timestamp:
09/21/2023 04:58:58 PM (2 years ago)
Author:
Bernhard Reiter
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #59424

    • Property Keywords has-patch has-unit-tests added
  • Ticket #59424 – Description

    initial v3  
    66<?php
    77function insert_shopping_cart_hooked_block( $hooked_blocks, $position, $anchor_block, $context ) {
    8         if ( 'after' === $position && 'core/navigation' && $anchor_block && /** $context is header template part **/ ) {
     8        if ( 'after' === $position && 'core/navigation' === $anchor_block && /** $context is header template part **/ ) {
    99                $hooked_blocks[] = 'mycommerce/shopping-cart';
    1010        }