# give/4.18.0/src/Campaigns/Actions/ReplaceGiveFormsCptLabels.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.18.0. 22 lines.

- Page: https://pluginprobe.com/plugins/give/4.18.0/code/src/Campaigns/Actions/ReplaceGiveFormsCptLabels.php
- Raw: https://pluginprobe.com/plugins/give/4.18.0/raw/src/Campaigns/Actions/ReplaceGiveFormsCptLabels.php
- Modified: 2025-03-31T19:17: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.18.0/code/src/Campaigns/Actions/ReplaceGiveFormsCptLabels.php#L10-L20`.

```php
<?php

namespace Give\Campaigns\Actions;

/**
 * @since 4.0.0
 */
class ReplaceGiveFormsCptLabels
{
    /**
     * @since 4.0.0
     */
    public function __invoke(array $labels): array
    {
        $labels['add_new_item'] = __('Add New Campaign Form', 'give');
        $labels['edit_item'] = __('Edit Campaign Form', 'give');
        $labels['name_admin_bar'] = __('Campaign', 'give');

        return $labels;
    }
}

```
