| 1 |
<?php |
| 2 |
namespace Elementor\Modules\Home\Transformations; |
| 3 |
|
| 4 |
use Elementor\Modules\Home\Transformations\Base\Transformations_Abstract; |
| 5 |
use Elementor\Plugin; |
| 6 |
|
| 7 |
if ( ! defined( 'ABSPATH' ) ) { |
| 8 |
exit; // Exit if accessed directly |
| 9 |
} |
| 10 |
|
| 11 |
class Create_New_Page_Url extends Transformations_Abstract { |
| 12 |
|
| 13 |
public function transform( array $home_screen_data ): array { |
| 14 |
$home_screen_data['create_new_page_url'] = Plugin::$instance->documents->get_create_new_post_url( 'page' ); |
| 15 |
|
| 16 |
return $home_screen_data; |
| 17 |
} |
| 18 |
} |
| 19 |
|