# wp-ultimate-post-grid/2.8.2/helpers/addons/addon.php

WP Ultimate Post Grid, version 2.8.2. 17 lines.

- Page: https://pluginprobe.com/plugins/wp-ultimate-post-grid/2.8.2/code/helpers/addons/addon.php
- Raw: https://pluginprobe.com/plugins/wp-ultimate-post-grid/2.8.2/raw/helpers/addons/addon.php
- Modified: 2015-04-15T08:46:56+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/wp-ultimate-post-grid/2.8.2/code/helpers/addons/addon.php#L10-L20`.

```php
<?php

class WPUPG_Addon {

    public $addonPath;
    public $addonDir;
    public $addonUrl;
    public $addonName;

    public function __construct( $name )
    {
        $this->addonPath = '/addons/' . $name;
        $this->addonDir = WPUltimatePostGrid::get()->coreDir . $this->addonPath;
        $this->addonUrl = WPUltimatePostGrid::get()->coreUrl . $this->addonPath;
        $this->addonName = $name;
    }
}
```
