# give/2.3.1/blocks/load.php

GiveWP – Donation Plugin and Fundraising Platform, version 2.3.1. 29 lines.

- Page: https://pluginprobe.com/plugins/give/2.3.1/code/blocks/load.php
- Raw: https://pluginprobe.com/plugins/give/2.3.1/raw/blocks/load.php
- Modified: 2018-12-13T20:30:46+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/2.3.1/code/blocks/load.php#L10-L20`.

```php
<?php
// Exit if access directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Add Custom Block Category for Give blocks
 */
function give_blocks_category( $categories, $post ) {
    return array_merge(
        $categories,
        array(
            array(
                'slug' => 'give',
                'title' => __( 'Give', 'give' ),
            ),
        )
    );
}
add_filter( 'block_categories', 'give_blocks_category', 10, 2 );

/**
* Blocks
*/
require_once GIVE_PLUGIN_DIR . 'blocks/donation-form/class-give-donation-form-block.php';
require_once GIVE_PLUGIN_DIR . 'blocks/donation-form-grid/class-give-donation-form-grid-block.php';
require_once GIVE_PLUGIN_DIR . 'blocks/donor-wall/class-give-donor-wall.php';

```
