at path:
ROOT
/
wp-content
/
plugins
/
tutor
/
includes
/
droip
/
backend
/
Iframe.php
run:
R
W
Run
ElementGenerator
DIR
2026-04-14 05:34:27
R
W
Run
Ajax.php
5.03 KB
2026-04-14 05:34:27
R
W
Run
Delete
Rename
Backend.php
746 By
2026-04-14 05:34:27
R
W
Run
Delete
Rename
Editor.php
894 By
2026-04-14 05:34:27
R
W
Run
Delete
Rename
Frontend.php
321 By
2026-04-14 05:34:27
R
W
Run
Delete
Rename
Helper.php
863 By
2026-04-14 05:34:27
R
W
Run
Delete
Rename
Hooks.php
40.91 KB
2026-04-14 05:34:27
R
W
Run
Delete
Rename
Iframe.php
1.37 KB
2026-04-14 05:34:27
R
W
Run
Delete
Rename
Pages.php
8.23 KB
2026-04-14 05:34:27
R
W
Run
Delete
Rename
VisibilityCondition.php
28.88 KB
2026-04-14 05:34:27
R
W
Run
Delete
Rename
error_log
up
📄
Iframe.php
Save
<?php /** * Preview script for html markup generator * * @package tutor-droip-elements */ namespace TutorLMSDroip; use TUTOR\Input; if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } /** * Class Iframe */ class Iframe { /** * Class constructor * * @since 1.0.0 */ public function __construct() { $post_id = Input::get( 'post_id', 0, Input::TYPE_INT ); if ( $post_id ) { $post = get_post( $post_id ); if ( $post && ( $post->post_type === TDE_APP_PREFIX . '-course-template' || $post->post_type === TDE_APP_PREFIX . '-courses-template' ) ) { // add_action( 'template_include', array( $this, 'load_page_template' ) ); add_action( 'template_redirect', array( $this, 'load_page_template' ) ); add_filter( 'droip_assets_should_load', array( $this, 'load_droip_assets' ) ); } } } /** * Load droip page template * it will include the template file insted of original template file * $loadForIframe = true if load for iframe * * @param string $original wp action for template file load. * @return string template name. */ public static function load_page_template() { get_header() . the_content() . get_footer(); exit(); } /** * Load droip assets * * @param bool $default_value default value. * @return bool * @since 1.0.0 */ public function load_droip_assets( $default_value ) { return true; } }