PluginProbe
Hostinger Tools / 2.1.5
Hostinger Tools v2.1.5
3.0.77 3.0.76 3.0.75 3.0.74 3.0.73 3.0.72 3.0.71 3.0.70 3.0.69 3.0.68 3.0.67 3.0.66 1.8.1 1.8.2 1.8.3 1.9.1 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0.0 2.0.1 2.0.4 All 108 releases
hostinger / includes / Admin / Onboarding / Steps / AddImage.php

AddImage.php in Hostinger Tools 2.1.5, at includes/Admin/Onboarding/Steps/AddImage.php

41 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Hostinger\Admin\Onboarding\Steps;
4
5 defined( 'ABSPATH' ) || exit;
6
7 class AddImage extends OnboardingStep {
8 public function get_title(): string {
9 return __( 'Upload an image', 'hostinger' );
10 }
11
12 public function get_body(): array {
13 return array(
14 array(
15 'title' => __( 'Find the Media page', 'hostinger' ),
16 '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' ),
17 ),
18 array(
19 'title' => __( 'Upload an image', 'hostinger' ),
20 'description' => __( 'To upload a new image, click on Add New button on the Media Library page and select files.', 'hostinger' ),
21 ),
22 array(
23 'title' => __( 'Edit an image', 'hostinger' ),
24 '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' ),
25 ),
26 );
27 }
28
29 public function step_identifier(): string {
30 return 'image_upload';
31 }
32
33 public function get_redirect_link(): string {
34 return admin_url( 'media-new.php' );
35 }
36
37 public function button_text(): string {
38 return __( 'Take me there', 'hostinger' );
39 }
40 }
41