# elementor/4.2.0-beta1/app/modules/site-builder/connect/app.php

Elementor Website Builder – more than just a page builder, version 4.2.0-beta1. 45 lines.

- Page: https://pluginprobe.com/plugins/elementor/4.2.0-beta1/code/app/modules/site-builder/connect/app.php
- Raw: https://pluginprobe.com/plugins/elementor/4.2.0-beta1/raw/app/modules/site-builder/connect/app.php
- Modified: 2026-06-22T13:43:24+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.2.0-beta1/code/app/modules/site-builder/connect/app.php#L10-L20`.

```php
<?php
namespace Elementor\App\Modules\SiteBuilder\Connect;

use Elementor\Core\Common\Modules\Connect\Apps\Library;

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

class App extends Library {
	const API_URL = 'https://my.elementor.com/api/v2/builder/';

	public function get_title() {
		return esc_html__( 'Site Builder', 'elementor' );
	}

	protected function get_slug() {
		return 'site-builder';
	}

	protected function get_api_url() {
		if ( defined( 'ELEMENTOR_SITE_BUILDER_API_ORIGIN' ) ) {
			return ELEMENTOR_SITE_BUILDER_API_ORIGIN . '/api/v2/builder/';
		}

		return static::API_URL;
	}

	public function get_home_screen() {
		return $this->http_request(
			'GET',
			'website-planner/session/home-screen',
			[
				'headers' => [
					'x-host-site-title' => (string) get_bloginfo( 'name' ),
					'x-host-site-context' => (string) get_bloginfo( 'description' ),
				],
			],
			[
				'return_type' => static::HTTP_RETURN_TYPE_ARRAY,
			]
		);
	}
}

```
