Hello @ashishsthanp ,
The reset functionalities were added through these hooks in advanced_import_reset_wordpress(). If you wish to completely remove them, you can use the following code in your theme or plugin:
add_action(
'init',
function () {
// Ensure the function exists before proceeding.
if ( function_exists( 'advanced_import_reset_wordpress' ) ) {
// Get the instance or callable returned by advanced_import_reset_wordpress.
$reset_handler = advanced_import_reset_wordpress();
// Remove actions with the corresponding hooks and methods.
remove_action( 'wp_loaded', array( $reset_handler, 'hide_reset_notice' ), -1 );
remove_action( 'admin_init', array( $reset_handler, 'reset_wizard_actions' ), -1 );
remove_action( 'admin_notices', array( $reset_handler, 'reset_wizard_notice' ), -1 );
remove_action( 'wp_ajax_advanced_import_before_reset', array( $reset_handler, 'before_reset' ) );
}
}
);
Let me know if you need any further assistance!
Best regards,