# give/4.16.9/src/DonationForms/Blocks/DonationFormBlock/Block.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.16.9. 33 lines.

- Page: https://pluginprobe.com/plugins/give/4.16.9/code/src/DonationForms/Blocks/DonationFormBlock/Block.php
- Raw: https://pluginprobe.com/plugins/give/4.16.9/raw/src/DonationForms/Blocks/DonationFormBlock/Block.php
- Modified: 2025-08-20T14:13:16+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/4.16.9/code/src/DonationForms/Blocks/DonationFormBlock/Block.php#L10-L20`.

```php
<?php

namespace Give\DonationForms\Blocks\DonationFormBlock;

use Give\DonationForms\Blocks\DonationFormBlock\Controllers\BlockRenderController;

class Block
{

    /**
     * @since 3.0.0
     *
     * @return void
     */
    public function register()
    {
        register_block_type(
            __DIR__,
            [
                'render_callback' => function ($attributes) {

                    $controller = new BlockRenderController();
                    if (!$controller->isGutenbergEditor()) {
                        return $controller->render($attributes);
                    }

                    return null;
                }
            ]
        );
    }
}

```
