Uname: Linux p3plzcpnl499967.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
Software: Apache
PHP version: 8.2.30 [ PHP INFO ] PHP os: Linux
Server Ip: 208.109.40.231
Your Ip: 216.73.216.26
User: nayff91c5tsx (10005085) | Group: nayff91c5tsx (10005085)
Safe Mode: OFF
Disable Function:
NONE

name : frontend.php
<?php
namespace Jet_Theme_Core;

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
	die;
}

class Frontend_Manager {

	/**
	 * @param $template_id
	 * @param $location
	 */
	public function render_default_template_content( $render_status, $template_id, $location ) {

		if ( ! $template_id ) {
			return false;
		}

		$content_type = jet_theme_core()->templates->get_template_content_type( $template_id );

		if ( 'default' !== $content_type ) {
			return false;
		}

		// Define elementor location render instance
		$block_editor_location = new \Jet_Theme_Core\Locations\Render\Block_Editor_Render( [
			'template_id' => $template_id,
			'location'    => $location,
		] );

		$render_status = $block_editor_location->render();

		return $render_status;
	}

	/**
	 * Frontend constructor.
	 */
	public function __construct() {
		add_filter( 'jet-theme-core/location/render/default-location-content', array( $this, 'render_default_template_content' ), 10, 3 );
	}

}
© 2026 GrazzMean