HEX
Server: Apache
System: Linux sg241.singhost.net 2.6.32-896.16.1.lve1.4.51.el6.x86_64 #1 SMP Wed Jan 17 13:19:23 EST 2018 x86_64
User: honghock (909)
PHP: 8.0.30
Disabled: passthru,system,shell_exec,show_source,exec,popen,proc_open
Upload Files
File: /home/honghock/www/wp-content/plugins/elementor/modules/site-navigation/data/endpoints/homepage.php
<?php

namespace Elementor\Modules\SiteNavigation\Data\Endpoints;

use Elementor\Data\V2\Base\Endpoint;

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

class Homepage extends Endpoint {

	public function get_permission_callback( $request ) {
		return current_user_can( 'edit_posts' );
	}

	public function get_name() {
		return 'homepage';
	}

	public function get_format() {
		return 'site-navigation/homepage';
	}

	public function get_items( $request ) {
		$homepage_id = get_option( 'page_on_front' );
		$show_on_front = get_option( 'show_on_front' );

		return 'page' === $show_on_front ? intval( $homepage_id ) : 0;
	}
}