PluginProbe
Hostinger Tools / 2.2.4
Hostinger Tools v2.2.4
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 / AddDescription.php

AddDescription.php in Hostinger Tools 2.2.4, at includes/Admin/Onboarding/Steps/AddDescription.php

49 lines 1.4 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 use Hostinger\Settings;
6
7 defined( 'ABSPATH' ) || exit;
8
9 class AddDescription extends OnboardingStep {
10 private string $website_type;
11
12 public function __construct() {
13 $this->website_type = Settings::get_setting( 'survey.website.type' );
14 }
15
16 public function get_title(): string {
17 return __( 'Edit post description', 'hostinger' );
18 }
19
20 public function get_body(): array {
21 return array(
22 array(
23 'title' => __( 'Go to Posts', 'hostinger' ),
24 'description' => __( 'In the left sidebar, find the Posts button. Click on the All Posts button and find the post for which you want to change the description.', 'hostinger' ),
25 ),
26 array(
27 'title' => __( 'Edit post', 'hostinger' ),
28 'description' => __( 'Hover over the chosen post to see the options menu. Click on the Edit button to open the post editor.', 'hostinger' ),
29 ),
30 array(
31 'title' => __( 'Edit description', 'hostinger' ),
32 'description' => __( 'You can see the whole post in the editor. Find the description part and change it to your preferences.', 'hostinger' ),
33 ),
34 );
35 }
36
37 public function step_identifier(): string {
38 return 'edit_description';
39 }
40
41 public function get_redirect_link(): string {
42 return admin_url( 'edit.php' );
43 }
44
45 public function button_text(): string {
46 return __( 'Take me there', 'hostinger' );
47 }
48 }
49