22 lines
520 B
PHP
22 lines
520 B
PHP
<?php
|
|
namespace Elementor\Modules\LandingPages\AdminMenuItems;
|
|
|
|
use Elementor\Core\Admin\Menu\Interfaces\Admin_Menu_Item_With_Page;
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit; // Exit if accessed directly.
|
|
}
|
|
|
|
class Landing_Pages_Empty_View_Menu_Item extends Landing_Pages_Menu_Item implements Admin_Menu_Item_With_Page {
|
|
|
|
private $render_callback;
|
|
|
|
public function __construct( callable $render_callback ) {
|
|
$this->render_callback = $render_callback;
|
|
}
|
|
|
|
public function render() {
|
|
( $this->render_callback )();
|
|
}
|
|
}
|