# fluent-cart/1.6.4/app/Services/ShortCodeParser/Parsers/WPParser.php

FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler, version 1.6.4. 35 lines.

- Page: https://pluginprobe.com/plugins/fluent-cart/1.6.4/code/app/Services/ShortCodeParser/Parsers/WPParser.php
- Raw: https://pluginprobe.com/plugins/fluent-cart/1.6.4/raw/app/Services/ShortCodeParser/Parsers/WPParser.php
- Modified: 2025-10-14T16:36: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/fluent-cart/1.6.4/code/app/Services/ShortCodeParser/Parsers/WPParser.php#L10-L20`.

```php
<?php

namespace FluentCart\App\Services\ShortCodeParser\Parsers;

class WPParser extends BaseParser
{
    protected array $methodMap = [
//        'admin_email' => 'getAdminEmail',
        'site_url' => 'getSiteUrl',
        'url' => 'getSiteUrl',
//        'site_name'   => 'getSiteName',
    ];

    public function parse($accessor = null, $code = null): ?string
    {
        return $this->get($accessor, $code);
    }


    public function getAdminEmail(): ?string
    {
        return get_bloginfo('admin_email');
    }

    public function getSiteUrl(): ?string
    {
        return get_bloginfo('url');
    }

    public function getSiteName(): ?string
    {
        return get_bloginfo('name');
    }
}

```
