| 1 |
<?php |
| 2 |
|
| 3 |
namespace Hostinger\Admin\Onboarding\Steps; |
| 4 |
|
| 5 |
defined( 'ABSPATH' ) || exit; |
| 6 |
|
| 7 |
class AddHeading extends OnboardingStep { |
| 8 |
public function get_title(): string { |
| 9 |
return __( 'Edit site title', 'hostinger' ); |
| 10 |
} |
| 11 |
|
| 12 |
public function get_body(): array { |
| 13 |
return array( |
| 14 |
array( |
| 15 |
'title' => __( 'Go to the Customize page', 'hostinger' ), |
| 16 |
'description' => __( 'In the left sidebar, click Appearance to expand the menu. In the Appearance section, click Customize. The Customize page will open.', 'hostinger' ), |
| 17 |
), |
| 18 |
array( |
| 19 |
'title' => __( 'Access the Site identity and edit title', 'hostinger' ), |
| 20 |
'description' => __( 'In the left sidebar, click Site Identity and edit your site title.', 'hostinger' ), |
| 21 |
), |
| 22 |
); |
| 23 |
} |
| 24 |
|
| 25 |
public function step_identifier(): string { |
| 26 |
return 'edit_site_title'; |
| 27 |
} |
| 28 |
|
| 29 |
public function get_redirect_link(): string { |
| 30 |
return admin_url( 'customize.php' ); |
| 31 |
} |
| 32 |
|
| 33 |
public function button_text(): string { |
| 34 |
return __( 'Take me there', 'hostinger' ); |
| 35 |
} |
| 36 |
} |
| 37 |
|