PressBooks\Modules\Import\Import::revokeCurrentImport PHP Метод

revokeCurrentImport() публичный Метод

Delete 'pressbooks_current_import' option, delete the file too.
public revokeCurrentImport ( ) : boolean
Результат boolean
    function revokeCurrentImport()
    {
        $current_import = get_option('pressbooks_current_import');
        if (is_array($current_import) && isset($current_import['file']) && is_file($current_import['file'])) {
            unlink($current_import['file']);
        }
        \Pressbooks\Book::deleteBookObjectCache();
        delete_transient('dirsize_cache');
        /** @see get_dirsize() */
        return delete_option('pressbooks_current_import');
    }