Edit File by line
/home/zeestwma/richards.../wp-conte.../plugins/wpforms-.../includes/admin
File: class-welcome.php
<?php
[0] Fix | Delete
[1] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[2] Fix | Delete
exit;
[3] Fix | Delete
}
[4] Fix | Delete
[5] Fix | Delete
/**
[6] Fix | Delete
* Welcome page class.
[7] Fix | Delete
*
[8] Fix | Delete
* This page is shown when the plugin is activated.
[9] Fix | Delete
*
[10] Fix | Delete
* @since 1.0.0
[11] Fix | Delete
*/
[12] Fix | Delete
class WPForms_Welcome {
[13] Fix | Delete
[14] Fix | Delete
/**
[15] Fix | Delete
* Hidden welcome page slug.
[16] Fix | Delete
*
[17] Fix | Delete
* @since 1.5.6
[18] Fix | Delete
*/
[19] Fix | Delete
const SLUG = 'wpforms-getting-started';
[20] Fix | Delete
[21] Fix | Delete
/**
[22] Fix | Delete
* Primary class constructor.
[23] Fix | Delete
*
[24] Fix | Delete
* @since 1.0.0
[25] Fix | Delete
*/
[26] Fix | Delete
public function __construct() {
[27] Fix | Delete
[28] Fix | Delete
add_action( 'plugins_loaded', [ $this, 'hooks' ] );
[29] Fix | Delete
}
[30] Fix | Delete
[31] Fix | Delete
/**
[32] Fix | Delete
* Register all WP hooks.
[33] Fix | Delete
*
[34] Fix | Delete
* @since 1.5.6
[35] Fix | Delete
*/
[36] Fix | Delete
public function hooks() {
[37] Fix | Delete
[38] Fix | Delete
// If user is in admin ajax or doing cron, return.
[39] Fix | Delete
if ( wp_doing_ajax() || wp_doing_cron() ) {
[40] Fix | Delete
return;
[41] Fix | Delete
}
[42] Fix | Delete
[43] Fix | Delete
// If user cannot manage_options, return.
[44] Fix | Delete
if ( ! wpforms_current_user_can() ) {
[45] Fix | Delete
return;
[46] Fix | Delete
}
[47] Fix | Delete
[48] Fix | Delete
add_action( 'admin_menu', [ $this, 'register' ] );
[49] Fix | Delete
add_action( 'admin_head', [ $this, 'hide_menu' ] );
[50] Fix | Delete
add_action( 'admin_init', [ $this, 'redirect' ], 9999 );
[51] Fix | Delete
}
[52] Fix | Delete
[53] Fix | Delete
/**
[54] Fix | Delete
* Register the pages to be used for the Welcome screen (and tabs).
[55] Fix | Delete
*
[56] Fix | Delete
* These pages will be removed from the Dashboard menu, so they will
[57] Fix | Delete
* not actually show. Sneaky, sneaky.
[58] Fix | Delete
*
[59] Fix | Delete
* @since 1.0.0
[60] Fix | Delete
*/
[61] Fix | Delete
public function register() {
[62] Fix | Delete
[63] Fix | Delete
// Getting started - shows after installation.
[64] Fix | Delete
add_dashboard_page(
[65] Fix | Delete
esc_html__( 'Welcome to WPForms', 'wpforms-lite' ),
[66] Fix | Delete
esc_html__( 'Welcome to WPForms', 'wpforms-lite' ),
[67] Fix | Delete
apply_filters( 'wpforms_welcome_cap', wpforms_get_capability_manage_options() ),
[68] Fix | Delete
self::SLUG,
[69] Fix | Delete
[ $this, 'output' ]
[70] Fix | Delete
);
[71] Fix | Delete
}
[72] Fix | Delete
[73] Fix | Delete
/**
[74] Fix | Delete
* Removed the dashboard pages from the admin menu.
[75] Fix | Delete
*
[76] Fix | Delete
* This means the pages are still available to us, but hidden.
[77] Fix | Delete
*
[78] Fix | Delete
* @since 1.0.0
[79] Fix | Delete
*/
[80] Fix | Delete
public function hide_menu() {
[81] Fix | Delete
[82] Fix | Delete
remove_submenu_page( 'index.php', self::SLUG );
[83] Fix | Delete
}
[84] Fix | Delete
[85] Fix | Delete
/**
[86] Fix | Delete
* Welcome screen redirect.
[87] Fix | Delete
*
[88] Fix | Delete
* This function checks if a new install or update has just occurred. If so,
[89] Fix | Delete
* then we redirect the user to the appropriate page.
[90] Fix | Delete
*
[91] Fix | Delete
* @since 1.0.0
[92] Fix | Delete
*/
[93] Fix | Delete
public function redirect() {
[94] Fix | Delete
[95] Fix | Delete
// Check if we should consider redirection.
[96] Fix | Delete
if ( ! get_transient( 'wpforms_activation_redirect' ) ) {
[97] Fix | Delete
return;
[98] Fix | Delete
}
[99] Fix | Delete
[100] Fix | Delete
// If we are redirecting, clear the transient so it only happens once.
[101] Fix | Delete
delete_transient( 'wpforms_activation_redirect' );
[102] Fix | Delete
[103] Fix | Delete
// Check option to disable welcome redirect.
[104] Fix | Delete
if ( get_option( 'wpforms_activation_redirect', false ) ) {
[105] Fix | Delete
return;
[106] Fix | Delete
}
[107] Fix | Delete
[108] Fix | Delete
// Only do this for single site installs.
[109] Fix | Delete
// phpcs:ignore WordPress.Security.NonceVerification.Recommended
[110] Fix | Delete
if ( isset( $_GET['activate-multi'] ) || is_network_admin() ) {
[111] Fix | Delete
return;
[112] Fix | Delete
}
[113] Fix | Delete
[114] Fix | Delete
// Check if this is an update or first install.
[115] Fix | Delete
$upgrade = get_option( 'wpforms_version_upgraded_from' );
[116] Fix | Delete
[117] Fix | Delete
if ( ! $upgrade ) {
[118] Fix | Delete
// Initial install.
[119] Fix | Delete
wp_safe_redirect( admin_url( 'index.php?page=' . self::SLUG ) );
[120] Fix | Delete
exit;
[121] Fix | Delete
}
[122] Fix | Delete
}
[123] Fix | Delete
[124] Fix | Delete
/**
[125] Fix | Delete
* Getting Started screen. Shows after first install.
[126] Fix | Delete
*
[127] Fix | Delete
* @since 1.0.0
[128] Fix | Delete
*/
[129] Fix | Delete
public function output() {
[130] Fix | Delete
[131] Fix | Delete
$class = wpforms()->is_pro() ? 'pro' : 'lite';
[132] Fix | Delete
?>
[133] Fix | Delete
[134] Fix | Delete
<div id="wpforms-welcome" class="<?php echo sanitize_html_class( $class ); ?>">
[135] Fix | Delete
[136] Fix | Delete
<div class="container">
[137] Fix | Delete
[138] Fix | Delete
<div class="intro">
[139] Fix | Delete
[140] Fix | Delete
<div class="sullie">
[141] Fix | Delete
<img src="<?php echo esc_url( WPFORMS_PLUGIN_URL . 'assets/images/sullie.png' ); ?>" alt="<?php esc_attr_e( 'Sullie the WPForms mascot', 'wpforms-lite' ); ?>">
[142] Fix | Delete
</div>
[143] Fix | Delete
[144] Fix | Delete
<div class="block">
[145] Fix | Delete
<h1><?php esc_html_e( 'Welcome to WPForms', 'wpforms-lite' ); ?></h1>
[146] Fix | Delete
<h6><?php esc_html_e( 'Thank you for choosing WPForms - the most powerful drag & drop WordPress form builder in the market.', 'wpforms-lite' ); ?></h6>
[147] Fix | Delete
</div>
[148] Fix | Delete
[149] Fix | Delete
<a href="#" class="play-video" title="<?php esc_attr_e( 'Watch how to create your first form', 'wpforms-lite' ); ?>">
[150] Fix | Delete
<img src="<?php echo esc_url( WPFORMS_PLUGIN_URL . 'assets/images/welcome-video.png' ); ?>" alt="<?php esc_attr_e( 'Watch how to create your first form', 'wpforms-lite' ); ?>" class="video-thumbnail">
[151] Fix | Delete
</a>
[152] Fix | Delete
[153] Fix | Delete
<div class="block">
[154] Fix | Delete
[155] Fix | Delete
<h6><?php esc_html_e( 'WPForms makes it easy to create forms in WordPress. You can watch the video tutorial or read our guide on how to create your first form.', 'wpforms-lite' ); ?></h6>
[156] Fix | Delete
[157] Fix | Delete
<div class="button-wrap wpforms-clear">
[158] Fix | Delete
<div class="left">
[159] Fix | Delete
<a href="<?php echo esc_url( admin_url( 'admin.php?page=wpforms-builder' ) ); ?>" class="wpforms-btn wpforms-btn-block wpforms-btn-lg wpforms-btn-orange">
[160] Fix | Delete
<?php esc_html_e( 'Create Your First Form', 'wpforms-lite' ); ?>
[161] Fix | Delete
</a>
[162] Fix | Delete
</div>
[163] Fix | Delete
<div class="right">
[164] Fix | Delete
<a href="<?php echo esc_url( wpforms_utm_link( 'https://wpforms.com/docs/creating-first-form/', 'welcome-page', 'Read the Full Guide' ) ); ?>"
[165] Fix | Delete
class="wpforms-btn wpforms-btn-block wpforms-btn-lg wpforms-btn-grey" target="_blank" rel="noopener noreferrer">
[166] Fix | Delete
<?php esc_html_e( 'Read the Full Guide', 'wpforms-lite' ); ?>
[167] Fix | Delete
</a>
[168] Fix | Delete
</div>
[169] Fix | Delete
</div>
[170] Fix | Delete
[171] Fix | Delete
</div>
[172] Fix | Delete
[173] Fix | Delete
</div><!-- /.intro -->
[174] Fix | Delete
[175] Fix | Delete
<?php do_action( 'wpforms_welcome_intro_after' ); ?>
[176] Fix | Delete
[177] Fix | Delete
<div class="features">
[178] Fix | Delete
[179] Fix | Delete
<div class="block">
[180] Fix | Delete
[181] Fix | Delete
<h1><?php esc_html_e( 'WPForms Features &amp; Addons', 'wpforms-lite' ); ?></h1>
[182] Fix | Delete
<h6><?php esc_html_e( 'WPForms is both easy to use and extremely powerful. We have tons of helpful features that allow us to give you everything you need from a form builder.', 'wpforms-lite' ); ?></h6>
[183] Fix | Delete
[184] Fix | Delete
<div class="feature-list wpforms-clear">
[185] Fix | Delete
[186] Fix | Delete
<div class="feature-block first">
[187] Fix | Delete
<img src="<?php echo esc_url( WPFORMS_PLUGIN_URL . 'assets/images/welcome-feature-icon-1.png' ); ?>">
[188] Fix | Delete
<h5><?php esc_html_e( 'Drag &amp; Drop Form Builder', 'wpforms-lite' ); ?></h5>
[189] Fix | Delete
<p><?php esc_html_e( 'Easily create an amazing form in just a few minutes without writing any code.', 'wpforms-lite' ); ?></p>
[190] Fix | Delete
</div>
[191] Fix | Delete
[192] Fix | Delete
<div class="feature-block last">
[193] Fix | Delete
<img src="<?php echo esc_url( WPFORMS_PLUGIN_URL . 'assets/images/welcome-feature-icon-2.png' ); ?>">
[194] Fix | Delete
<h5><?php esc_html_e( 'Form Templates', 'wpforms-lite' ); ?></h5>
[195] Fix | Delete
<p><?php esc_html_e( 'Start with pre-built form templates to save even more time.', 'wpforms-lite' ); ?></p>
[196] Fix | Delete
</div>
[197] Fix | Delete
[198] Fix | Delete
<div class="feature-block first">
[199] Fix | Delete
<img src="<?php echo esc_url( WPFORMS_PLUGIN_URL . 'assets/images/welcome-feature-icon-3.png' ); ?>">
[200] Fix | Delete
<h5><?php esc_html_e( 'Responsive Mobile Friendly', 'wpforms-lite' ); ?></h5>
[201] Fix | Delete
<p><?php esc_html_e( 'WPForms is 100% responsive meaning it works on mobile, tablets & desktop.', 'wpforms-lite' ); ?></p>
[202] Fix | Delete
</div>
[203] Fix | Delete
[204] Fix | Delete
<div class="feature-block last">
[205] Fix | Delete
<img src="<?php echo esc_url( WPFORMS_PLUGIN_URL . 'assets/images/welcome-feature-icon-4.png' ); ?>">
[206] Fix | Delete
<h5><?php esc_html_e( 'Smart Conditional Logic', 'wpforms-lite' ); ?></h5>
[207] Fix | Delete
<p><?php esc_html_e( 'Easily create high performance forms with our smart conditional logic.', 'wpforms-lite' ); ?></p>
[208] Fix | Delete
</div>
[209] Fix | Delete
[210] Fix | Delete
<div class="feature-block first">
[211] Fix | Delete
<img src="<?php echo esc_url( WPFORMS_PLUGIN_URL . 'assets/images/welcome-feature-icon-5.png' ); ?>">
[212] Fix | Delete
<h5><?php esc_html_e( 'Instant Notifications', 'wpforms-lite' ); ?></h5>
[213] Fix | Delete
<p><?php esc_html_e( 'Respond to leads quickly with our instant form notification feature for your team.', 'wpforms-lite' ); ?></p>
[214] Fix | Delete
</div>
[215] Fix | Delete
[216] Fix | Delete
<div class="feature-block last">
[217] Fix | Delete
<img src="<?php echo esc_url( WPFORMS_PLUGIN_URL . 'assets/images/welcome-feature-icon-6.png' ); ?>">
[218] Fix | Delete
<h5><?php esc_html_e( 'Entry Management', 'wpforms-lite' ); ?></h5>
[219] Fix | Delete
<p><?php esc_html_e( 'View all your leads in one place to streamline your workflow.', 'wpforms-lite' ); ?></p>
[220] Fix | Delete
</div>
[221] Fix | Delete
[222] Fix | Delete
<div class="feature-block first">
[223] Fix | Delete
<img src="<?php echo esc_url( WPFORMS_PLUGIN_URL . 'assets/images/welcome-feature-icon-7.png' ); ?>">
[224] Fix | Delete
<h5><?php esc_html_e( 'Payments Made Easy', 'wpforms-lite' ); ?></h5>
[225] Fix | Delete
<p><?php esc_html_e( 'Easily collect payments, donations, and online orders without hiring a developer.', 'wpforms-lite' ); ?></p>
[226] Fix | Delete
</div>
[227] Fix | Delete
[228] Fix | Delete
<div class="feature-block last">
[229] Fix | Delete
<img src="<?php echo esc_url( WPFORMS_PLUGIN_URL . 'assets/images/welcome-feature-icon-8.png' ); ?>">
[230] Fix | Delete
<h5><?php esc_html_e( 'Marketing &amp; Subscriptions', 'wpforms-lite' ); ?></h5>
[231] Fix | Delete
<p><?php esc_html_e( 'Create subscription forms and connect with your email marketing service.', 'wpforms-lite' ); ?></p>
[232] Fix | Delete
</div>
[233] Fix | Delete
[234] Fix | Delete
<div class="feature-block first">
[235] Fix | Delete
<img src="<?php echo esc_url( WPFORMS_PLUGIN_URL . 'assets/images/welcome-feature-icon-9.png' ); ?>">
[236] Fix | Delete
<h5><?php esc_html_e( 'Easy to Embed', 'wpforms-lite' ); ?></h5>
[237] Fix | Delete
<p><?php esc_html_e( 'Easily embed your forms in blog posts, pages, sidebar widgets, footer, etc.', 'wpforms-lite' ); ?></p>
[238] Fix | Delete
</div>
[239] Fix | Delete
[240] Fix | Delete
<div class="feature-block last">
[241] Fix | Delete
<img src="<?php echo esc_url( WPFORMS_PLUGIN_URL . 'assets/images/welcome-feature-icon-10.png' ); ?>">
[242] Fix | Delete
<h5><?php esc_html_e( 'Spam Protection', 'wpforms-lite' ); ?></h5>
[243] Fix | Delete
<p><?php esc_html_e( 'Our smart captcha and spam protection automatically prevents spam submissions.', 'wpforms-lite' ); ?></p>
[244] Fix | Delete
</div>
[245] Fix | Delete
[246] Fix | Delete
</div>
[247] Fix | Delete
[248] Fix | Delete
<div class="button-wrap">
[249] Fix | Delete
<a href="<?php echo esc_url( wpforms_utm_link( 'https://wpforms.com/features/', 'welcome-page', 'See All Features' ) ); ?>"
[250] Fix | Delete
class="wpforms-btn wpforms-btn-lg wpforms-btn-grey" rel="noopener noreferrer" target="_blank">
[251] Fix | Delete
<?php esc_html_e( 'See All Features', 'wpforms-lite' ); ?>
[252] Fix | Delete
</a>
[253] Fix | Delete
</div>
[254] Fix | Delete
[255] Fix | Delete
</div>
[256] Fix | Delete
[257] Fix | Delete
</div><!-- /.features -->
[258] Fix | Delete
[259] Fix | Delete
<div class="upgrade-cta upgrade">
[260] Fix | Delete
[261] Fix | Delete
<div class="block wpforms-clear">
[262] Fix | Delete
[263] Fix | Delete
<div class="left">
[264] Fix | Delete
<h2><?php esc_html_e( 'Upgrade to PRO', 'wpforms-lite' ); ?></h2>
[265] Fix | Delete
<ul>
[266] Fix | Delete
<li><span class="dashicons dashicons-yes"></span> <?php esc_html_e( 'Advanced Fields', 'wpforms-lite' ); ?></li>
[267] Fix | Delete
<li><span class="dashicons dashicons-yes"></span> <?php esc_html_e( 'Conditional Logic', 'wpforms-lite' ); ?></li>
[268] Fix | Delete
<li><span class="dashicons dashicons-yes"></span> <?php esc_html_e( 'Payment Forms', 'wpforms-lite' ); ?></li>
[269] Fix | Delete
<li><span class="dashicons dashicons-yes"></span> <?php esc_html_e( 'Surveys & Polls', 'wpforms-lite' ); ?></li>
[270] Fix | Delete
<li><span class="dashicons dashicons-yes"></span> <?php esc_html_e( 'Signatures', 'wpforms-lite' ); ?></li>
[271] Fix | Delete
<li><span class="dashicons dashicons-yes"></span> <?php esc_html_e( 'Form Abandonment', 'wpforms-lite' ); ?></li>
[272] Fix | Delete
<li><span class="dashicons dashicons-yes"></span> <?php esc_html_e( 'Entry Management', 'wpforms-lite' ); ?></li>
[273] Fix | Delete
<li><span class="dashicons dashicons-yes"></span> <?php esc_html_e( 'File Uploads', 'wpforms-lite' ); ?></li>
[274] Fix | Delete
<li><span class="dashicons dashicons-yes"></span> <?php esc_html_e( 'Geolocation', 'wpforms-lite' ); ?></li>
[275] Fix | Delete
<li><span class="dashicons dashicons-yes"></span> <?php esc_html_e( 'Conversational Forms', 'wpforms-lite' ); ?></li>
[276] Fix | Delete
<li><span class="dashicons dashicons-yes"></span> <?php esc_html_e( 'User Registration', 'wpforms-lite' ); ?></li>
[277] Fix | Delete
<li><span class="dashicons dashicons-yes"></span> <?php esc_html_e( 'Marketing Integrations', 'wpforms-lite' ); ?></li>
[278] Fix | Delete
</ul>
[279] Fix | Delete
</div>
[280] Fix | Delete
[281] Fix | Delete
<div class="right">
[282] Fix | Delete
<h2><span>PRO</span></h2>
[283] Fix | Delete
<div class="price">
[284] Fix | Delete
<span class="amount">199</span><br>
[285] Fix | Delete
<span class="term"><?php esc_html_e( 'per year', 'wpforms-lite' ); ?></span>
[286] Fix | Delete
</div>
[287] Fix | Delete
<a href="<?php echo esc_url( wpforms_admin_upgrade_link( 'welcome', 'Upgrade Now CTA Section' ) ); ?>" rel="noopener noreferrer" target="_blank"
[288] Fix | Delete
class="wpforms-btn wpforms-btn-block wpforms-btn-lg wpforms-btn-orange wpforms-upgrade-modal">
[289] Fix | Delete
<?php esc_html_e( 'Upgrade Now', 'wpforms-lite' ); ?>
[290] Fix | Delete
</a>
[291] Fix | Delete
</div>
[292] Fix | Delete
[293] Fix | Delete
</div>
[294] Fix | Delete
[295] Fix | Delete
</div>
[296] Fix | Delete
[297] Fix | Delete
<div class="testimonials upgrade">
[298] Fix | Delete
[299] Fix | Delete
<div class="block">
[300] Fix | Delete
[301] Fix | Delete
<h1><?php esc_html_e( 'Testimonials', 'wpforms-lite' ); ?></h1>
[302] Fix | Delete
[303] Fix | Delete
<div class="testimonial-block wpforms-clear">
[304] Fix | Delete
<img src="<?php echo esc_url( WPFORMS_PLUGIN_URL . 'assets/images/welcome-testimonial-bill.jpg' ); ?>">
[305] Fix | Delete
<p><?php esc_html_e( 'WPForms is by far the easiest form plugin to use. My clients love it – it’s one of the few plugins they can use without any training. As a developer I appreciate how fast, modern, clean and extensible it is.', 'wpforms-lite' ); ?>
[306] Fix | Delete
<p>
[307] Fix | Delete
<p><strong>Bill Erickson</strong>, Erickson Web Consulting</p>
[308] Fix | Delete
</div>
[309] Fix | Delete
[310] Fix | Delete
<div class="testimonial-block wpforms-clear">
[311] Fix | Delete
<img src="<?php echo esc_url( WPFORMS_PLUGIN_URL . 'assets/images/welcome-testimonial-david.jpg' ); ?>">
[312] Fix | Delete
<p><?php esc_html_e( 'As a business owner, time is my most valuable asset. WPForms allow me to create smart online forms with just a few clicks. With their pre-built form templates and the drag & drop builder, I can create a new form that works in less than 2 minutes without writing a single line of code. Well worth the investment.', 'wpforms-lite' ); ?>
[313] Fix | Delete
<p>
[314] Fix | Delete
<p><strong>David Henzel</strong>, MaxCDN</p>
[315] Fix | Delete
</div>
[316] Fix | Delete
[317] Fix | Delete
</div>
[318] Fix | Delete
[319] Fix | Delete
</div><!-- /.testimonials -->
[320] Fix | Delete
[321] Fix | Delete
<div class="footer">
[322] Fix | Delete
[323] Fix | Delete
<div class="block wpforms-clear">
[324] Fix | Delete
[325] Fix | Delete
<div class="button-wrap wpforms-clear">
[326] Fix | Delete
<div class="left">
[327] Fix | Delete
<a href="<?php echo esc_url( admin_url( 'admin.php?page=wpforms-builder' ) ); ?>"
[328] Fix | Delete
class="wpforms-btn wpforms-btn-block wpforms-btn-lg wpforms-btn-orange">
[329] Fix | Delete
<?php esc_html_e( 'Create Your First Form', 'wpforms-lite' ); ?>
[330] Fix | Delete
</a>
[331] Fix | Delete
</div>
[332] Fix | Delete
<div class="right">
[333] Fix | Delete
<a href="<?php echo esc_url( wpforms_admin_upgrade_link( 'welcome', 'Upgrade to WPForms Pro' ) ); ?>" target="_blank" rel="noopener noreferrer"
[334] Fix | Delete
class="wpforms-btn wpforms-btn-block wpforms-btn-lg wpforms-btn-trans-green wpforms-upgrade-modal">
[335] Fix | Delete
<span class="underline">
[336] Fix | Delete
<?php esc_html_e( 'Upgrade to WPForms Pro', 'wpforms-lite' ); ?> <span class="dashicons dashicons-arrow-right"></span>
[337] Fix | Delete
</span>
[338] Fix | Delete
</a>
[339] Fix | Delete
</div>
[340] Fix | Delete
</div>
[341] Fix | Delete
[342] Fix | Delete
</div>
[343] Fix | Delete
[344] Fix | Delete
</div><!-- /.footer -->
[345] Fix | Delete
[346] Fix | Delete
</div><!-- /.container -->
[347] Fix | Delete
[348] Fix | Delete
</div><!-- /#wpforms-welcome -->
[349] Fix | Delete
<?php
[350] Fix | Delete
}
[351] Fix | Delete
}
[352] Fix | Delete
[353] Fix | Delete
new WPForms_Welcome();
[354] Fix | Delete
[355] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function