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

Elementor Website Builder – more than just a page builder, version 3.28.0-dev1. 19 lines.

- Page: https://pluginprobe.com/plugins/elementor/3.28.0-dev1/code/modules/home/transformations/create-new-page-url.php
- Raw: https://pluginprobe.com/plugins/elementor/3.28.0-dev1/raw/modules/home/transformations/create-new-page-url.php
- Modified: 2025-03-03T11:51:34+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.28.0-dev1/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['button_cta_url'] = Plugin::$instance->documents->get_create_new_post_url( 'page' );

		return $home_screen_data;
	}
}

```
