# hostinger/2.1.6/includes/Admin/Onboarding/Steps/AddPost.php

Hostinger Tools, version 2.1.6. 41 lines.

- Page: https://pluginprobe.com/plugins/hostinger/2.1.6/code/includes/Admin/Onboarding/Steps/AddPost.php
- Raw: https://pluginprobe.com/plugins/hostinger/2.1.6/raw/includes/Admin/Onboarding/Steps/AddPost.php
- Modified: 2024-03-15T08:53:42+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/hostinger/2.1.6/code/includes/Admin/Onboarding/Steps/AddPost.php#L10-L20`.

```php
<?php

namespace Hostinger\Admin\Onboarding\Steps;

defined( 'ABSPATH' ) || exit;

class AddPost extends OnboardingStep {
	public function get_title(): string {
		return __( 'Create your first blog post', 'hostinger' );
	}

	public function get_body(): array {
		return array(
			array(
				'title'       => __( 'Create a catchy headline', 'hostinger' ),
				'description' => __( 'Create a headline that grabs your visitors attention and accurately represents the content of your post.', 'hostinger' ),
			),
			array(
				'title'       => __( 'Draft your post', 'hostinger' ),
				'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' ),
			),
			array(
				'title'       => __( 'Proofread and publish', 'hostinger' ),
				'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' ),
			),
		);
	}

	public function step_identifier(): string {
		return 'add_post';
	}

	public function get_redirect_link(): string {
		return admin_url( 'post-new.php' );
	}

	public function button_text(): string {
		return __( 'Take me there', 'hostinger' );
	}
}

```
