# hostinger/2.1.8/includes/Admin/Onboarding/Steps/AddImage.php

Hostinger Tools, version 2.1.8. 41 lines.

- Page: https://pluginprobe.com/plugins/hostinger/2.1.8/code/includes/Admin/Onboarding/Steps/AddImage.php
- Raw: https://pluginprobe.com/plugins/hostinger/2.1.8/raw/includes/Admin/Onboarding/Steps/AddImage.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.8/code/includes/Admin/Onboarding/Steps/AddImage.php#L10-L20`.

```php
<?php

namespace Hostinger\Admin\Onboarding\Steps;

defined( 'ABSPATH' ) || exit;

class AddImage extends OnboardingStep {
	public function get_title(): string {
		return __( 'Upload an image', 'hostinger' );
	}

	public function get_body(): array {
		return array(
			array(
				'title'       => __( 'Find the Media page', 'hostinger' ),
				'description' => __( 'In the left sidebar, find the Media button. The Media Library page allows you to edit, view, and delete media previously uploaded to your website.', 'hostinger' ),
			),
			array(
				'title'       => __( 'Upload an image', 'hostinger' ),
				'description' => __( 'To upload a new image, click on Add New button on the Media Library page and select files.', 'hostinger' ),
			),
			array(
				'title'       => __( 'Edit an image', 'hostinger' ),
				'description' => __( 'If you wish to edit the image, click on the chosen image and click the Edit Image button. You can now crop, rotate, flip or scale the selected image.', 'hostinger' ),
			),
		);
	}

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

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

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

```
