Edit File by line
/home/zeestwma/richards.../wp-conte.../plugins/elemento.../modules/checklis.../steps
File: create-pages.php
<?php
[0] Fix | Delete
[1] Fix | Delete
namespace Elementor\Modules\Checklist\Steps;
[2] Fix | Delete
[3] Fix | Delete
use Elementor\Plugin;
[4] Fix | Delete
[5] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[6] Fix | Delete
exit; // Exit if accessed directly.
[7] Fix | Delete
}
[8] Fix | Delete
[9] Fix | Delete
class Create_Pages extends Step_Base {
[10] Fix | Delete
const STEP_ID = 'create_pages';
[11] Fix | Delete
[12] Fix | Delete
public function get_id(): string {
[13] Fix | Delete
return self::STEP_ID;
[14] Fix | Delete
}
[15] Fix | Delete
[16] Fix | Delete
public function is_absolute_completed(): bool {
[17] Fix | Delete
$pages = $this->wordpress_adapter->get_pages( [
[18] Fix | Delete
'meta_key' => '_elementor_version',
[19] Fix | Delete
'number' => 3,
[20] Fix | Delete
] ) ?? [];
[21] Fix | Delete
[22] Fix | Delete
return count( $pages ) >= 3;
[23] Fix | Delete
}
[24] Fix | Delete
[25] Fix | Delete
public function get_title(): string {
[26] Fix | Delete
return esc_html__( 'Create your first 3 pages', 'elementor' );
[27] Fix | Delete
}
[28] Fix | Delete
[29] Fix | Delete
public function get_description(): string {
[30] Fix | Delete
return esc_html__( 'Jumpstart your creation with professional designs from the Template Library or start from scratch.', 'elementor' );
[31] Fix | Delete
}
[32] Fix | Delete
[33] Fix | Delete
public function get_cta_text(): string {
[34] Fix | Delete
return esc_html__( 'Create a new page', 'elementor' );
[35] Fix | Delete
}
[36] Fix | Delete
[37] Fix | Delete
public function get_cta_url(): string {
[38] Fix | Delete
return Plugin::$instance->documents->get_create_new_post_url( 'page' );
[39] Fix | Delete
}
[40] Fix | Delete
[41] Fix | Delete
public function get_learn_more_url(): string {
[42] Fix | Delete
return 'http://go.elementor.com/app-website-checklist-pages-article';
[43] Fix | Delete
}
[44] Fix | Delete
[45] Fix | Delete
public function get_is_completion_immutable(): bool {
[46] Fix | Delete
return true;
[47] Fix | Delete
}
[48] Fix | Delete
[49] Fix | Delete
public function get_image_src(): string {
[50] Fix | Delete
return 'https://assets.elementor.com/checklist/v1/images/checklist-step-3.jpg';
[51] Fix | Delete
}
[52] Fix | Delete
}
[53] Fix | Delete
[54] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function