Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/www/wp-content/plugins/elementor/modules/site-navigation/data/endpoints/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //home/corals/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;
	}
}

Spamworldpro Mini