| 1 |
<?php |
| 2 |
namespace Elementor\Modules\ConversionCenter\AdminMenuItems; |
| 3 |
|
| 4 |
use Elementor\Core\Admin\Menu\Interfaces\Admin_Menu_Item_With_Page; |
| 5 |
|
| 6 |
if ( ! defined( 'ABSPATH' ) ) { |
| 7 |
exit; // Exit if accessed directly. |
| 8 |
} |
| 9 |
|
| 10 |
class Links_Empty_View_Menu_Item extends Links_Menu_Item implements Admin_Menu_Item_With_Page { |
| 11 |
|
| 12 |
private $render_callback; |
| 13 |
|
| 14 |
public function __construct( callable $render_callback, $parent_slug ) { |
| 15 |
parent::__construct( $parent_slug ); |
| 16 |
$this->render_callback = $render_callback; |
| 17 |
} |
| 18 |
|
| 19 |
public function render() { |
| 20 |
( $this->render_callback )(); |
| 21 |
} |
| 22 |
} |
| 23 |
|