Menus: Do not modify some item URLs

This snippet for the menus add-on prevents some menu item URLs from being modified, instead allowing us to keep the URL from the parent.

add_action( 'broadcast_menus_modify_new_menu_item', function( $action )
{
    if ( in_array( $action->new_item[ 'menu-item-url' ], [
        'https://test1.broadcast.demo/a-parent-page/',
        'https://plainviewplugins.com/',
    ] ) )
    {
        $action->finish();
        // Do not let the Menus add-on make it custom.
        $action->make_custom = false;
        // Instead, do it ourselves, since the add-on will automatically want to replace the URL.
        $action->new_item[ 'menu-item-object-id' ] = 0;
        $action->new_item[ 'menu-item-object' ] = 'custom';
        $action->new_item[ 'menu-item-type' ] = 'custom';
        $action->replace_url = false;
    }
} );