# give/4.16.9/src/Framework/FieldsAPI/Concerns/ShowInAdmin.php

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

- Page: https://pluginprobe.com/plugins/give/4.16.9/code/src/Framework/FieldsAPI/Concerns/ShowInAdmin.php
- Raw: https://pluginprobe.com/plugins/give/4.16.9/raw/src/Framework/FieldsAPI/Concerns/ShowInAdmin.php
- Modified: 2023-06-08T21:23:00+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/Framework/FieldsAPI/Concerns/ShowInAdmin.php#L10-L20`.

```php
<?php

namespace Give\Framework\FieldsAPI\Concerns;

/**
 * @since 2.27.3
 */
trait ShowInAdmin
{

    /**
     * @since 2.27.3
     */
    protected $showInAdmin = false;

    /**
     * @since 2.27.3
     */
    public function showInAdmin($showInAdmin = true): self
    {
        $this->showInAdmin = $showInAdmin;

        return $this;
    }

    /**
     * @since 2.27.3
     */
    public function shouldShowInAdmin(): bool
    {
        return $this->showInAdmin;
    }
}

```
