# wpsynchro/trunk/src/Utilities/JSData/PageHeaderData.php

WP Synchro – The Ultimate WordPress Migration Tool, version trunk. 28 lines.

- Page: https://pluginprobe.com/plugins/wpsynchro/trunk/code/src/Utilities/JSData/PageHeaderData.php
- Raw: https://pluginprobe.com/plugins/wpsynchro/trunk/raw/src/Utilities/JSData/PageHeaderData.php
- Modified: 2026-09-04T12:18: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/wpsynchro/trunk/code/src/Utilities/JSData/PageHeaderData.php#L10-L20`.

```php
<?php

/**
 * Class for providing data for page headers
 */

namespace WPSynchro\Utilities\JSData;

use WPSynchro\Utilities\CommonFunctions;

class PageHeaderData
{
    /**
     *  Load the JS data for page headers
     */
    public function load($script_alias = 'wpsynchro_admin_js')
    {
        $commonfunctions = new CommonFunctions();

        $jsdata = [
            "isPro" => $commonfunctions::isPremiumVersion(),
            "pageTitleImg" => $commonfunctions->getAssetUrl("icon.png"),
            "version" => WPSYNCHRO_VERSION,
        ];
        wp_localize_script($script_alias, 'wpsynchro_page_header', $jsdata);
    }
}

```
