Is it possible to wrap the following echo when the import is completed
from
echo '<p>' . __( 'All done.', 'wordpress-importer' ) . ' <a href="' . admin_url() . '">' . __( 'Have fun!', 'wordpress-importer' ) . '</a>' . '</p>';
echo '<p>' . __( 'Remember to update the passwords and roles of imported users.', 'wordpress-importer' ) . '</p>';
to
if ( ! defined( 'WP_CLI' ) ) {
echo '<p>' . __( 'All done.', 'wordpress-importer' ) . ' <a href="' . admin_url() . '">' . __( 'Have fun!', 'wordpress-importer' ) . '</a>' . '</p>';
echo '<p>' . __( 'Remember to update the passwords and roles of imported users.', 'wordpress-importer' ) . '</p>';
}
I found that having to use WP CLI to import data and each time when it completes it displays that even if you set import process with --quiet
the echo should still remain on output if you are importing from the dashboard.
What you guys think!
Is it possible to wrap the following echo when the import is completed
from
to
I found that having to use WP CLI to import data and each time when it completes it displays that even if you set import process with
--quietthe echo should still remain on output if you are importing from the dashboard.
What you guys think!