# elementor/4.3.0-beta3/modules/mcp/abilities/utils/document-preview-url.php

Elementor Website Builder – more than just a page builder, version 4.3.0-beta3. 25 lines.

- Page: https://pluginprobe.com/plugins/elementor/4.3.0-beta3/code/modules/mcp/abilities/utils/document-preview-url.php
- Raw: https://pluginprobe.com/plugins/elementor/4.3.0-beta3/raw/modules/mcp/abilities/utils/document-preview-url.php
- Modified: 2026-09-01T11:47:36+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/4.3.0-beta3/code/modules/mcp/abilities/utils/document-preview-url.php#L10-L20`.

```php
<?php

namespace Elementor\Modules\Mcp\Abilities\Utils;

use Elementor\Core\Base\Document;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

class Document_Preview_Url {

	public static function output_schema_property(): array {
		return [
			'type' => 'string',
			'format' => 'uri',
			'description' => 'Human preview URL. Open in a browser while logged into WordPress as an editor; relies on session cookies, not preview_nonce.',
		];
	}

	public static function for_document( Document $document ): string {
		return remove_query_arg( 'preview_nonce', $document->get_wp_preview_url() );
	}
}

```
