403Webshell
Server IP : 15.235.198.142  /  Your IP : 216.73.216.155
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/yme/wp-content/plugins/elementor/modules/site-navigation/data/endpoints/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/yme/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;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit