| 1 |
<?php |
| 2 |
|
| 3 |
namespace Hostinger\Admin\Onboarding\Steps; |
| 4 |
|
| 5 |
defined( 'ABSPATH' ) || exit; |
| 6 |
|
| 7 |
class AddPost extends OnboardingStep { |
| 8 |
public function get_title(): string { |
| 9 |
return __( 'Create your first blog post', 'hostinger' ); |
| 10 |
} |
| 11 |
|
| 12 |
public function get_body(): array { |
| 13 |
return array( |
| 14 |
array( |
| 15 |
'title' => __( 'Create a catchy headline', 'hostinger' ), |
| 16 |
'description' => __( 'Create a headline that grabs your visitors attention and accurately represents the content of your post.', 'hostinger' ), |
| 17 |
), |
| 18 |
array( |
| 19 |
'title' => __( 'Draft your post', 'hostinger' ), |
| 20 |
'description' => __( 'Write your content, making sure to include relevant keywords and images. You can use different blocks to create headings, paragraphs, lists, and other types of content.', 'hostinger' ), |
| 21 |
), |
| 22 |
array( |
| 23 |
'title' => __( 'Proofread and publish', 'hostinger' ), |
| 24 |
'description' => __( 'Once you have finished drafting your post, read it over to check for errors, make any necessary revisions, and then publish it to your blog.', 'hostinger' ), |
| 25 |
), |
| 26 |
); |
| 27 |
} |
| 28 |
|
| 29 |
public function step_identifier(): string { |
| 30 |
return 'add_post'; |
| 31 |
} |
| 32 |
|
| 33 |
public function get_redirect_link(): string { |
| 34 |
return admin_url( 'post-new.php' ); |
| 35 |
} |
| 36 |
|
| 37 |
public function button_text(): string { |
| 38 |
return __( 'Take me there', 'hostinger' ); |
| 39 |
} |
| 40 |
} |
| 41 |
|