# elementor/3.22.2/modules/home/transformations/create-new-page-url.php

Elementor Website Builder – more than just a page builder, version 3.22.2. 19 lines.

- Page: https://pluginprobe.com/plugins/elementor/3.22.2/code/modules/home/transformations/create-new-page-url.php
- Raw: https://pluginprobe.com/plugins/elementor/3.22.2/raw/modules/home/transformations/create-new-page-url.php
- Modified: 2024-04-11T09:40:30+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/elementor/3.22.2/code/modules/home/transformations/create-new-page-url.php#L10-L20`.

```php
<?php
namespace Elementor\Modules\Home\Transformations;

use Elementor\Modules\Home\Transformations\Base\Transformations_Abstract;
use Elementor\Plugin;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

class Create_New_Page_Url extends Transformations_Abstract {

	public function transform( array $home_screen_data ): array {
		$home_screen_data['create_new_page_url'] = Plugin::$instance->documents->get_create_new_post_url( 'page' );

		return $home_screen_data;
	}
}

```
