# give/4.16.8.1/src/API/REST/V3/Entities/Actions/RegisterAdminEntities.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.16.8.1. 34 lines.

- Page: https://pluginprobe.com/plugins/give/4.16.8.1/code/src/API/REST/V3/Entities/Actions/RegisterAdminEntities.php
- Raw: https://pluginprobe.com/plugins/give/4.16.8.1/raw/src/API/REST/V3/Entities/Actions/RegisterAdminEntities.php
- Modified: 2025-11-18T14:37:22+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.8.1/code/src/API/REST/V3/Entities/Actions/RegisterAdminEntities.php#L10-L20`.

```php
<?php

namespace Give\API\REST\V3\Entities\Actions;

use Give\Framework\Support\Facades\Scripts\ScriptAsset;
use Give\Helpers\Language;

/**
 * @since 4.13.1
 */
class RegisterAdminEntities
{
    /**
     * @since 4.13.1
     */
    public function __invoke()
    {
        $handleName = 'givewp-entities-admin';
        $scriptAsset = ScriptAsset::get(GIVE_PLUGIN_DIR . 'build/entitiesAdmin.asset.php');

        wp_register_script(
            $handleName,
            GIVE_PLUGIN_URL . 'build/entitiesAdmin.js',
            $scriptAsset['dependencies'],
            $scriptAsset['version'],
            true
        );

        wp_enqueue_script($handleName);

        Language::setScriptTranslations($handleName);
    }
}

```
